Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support datetime parsing #5

Open
yuvadm opened this issue Mar 19, 2018 · 1 comment
Open

Support datetime parsing #5

yuvadm opened this issue Mar 19, 2018 · 1 comment
Labels
Milestone

Comments

@yuvadm
Copy link
Owner

yuvadm commented Mar 19, 2018

Datetime encoding is still unknown, though some test cases do exist:

def test_datetime(self):
    vs = ViewState()
    vs.raw = b'\xff\x01\x06\x000Po\x9b\x87\xd5\x88'
    assert vs.decode() == datetime(2018, 3, 11, 22)
    vs.raw = b'\xff\x01\x06\x00\xf0\xb9\x99d\x88\xd5\x88'
    assert vs.decode() == datetime(2018, 3, 12, 22)

Proper datetime parsing should be supported

@yuvadm yuvadm added this to the v0.5 milestone Apr 20, 2018
@yuvadm
Copy link
Owner Author

yuvadm commented Apr 20, 2018

Decoding should follow the official implementation https://referencesource.microsoft.com/#mscorlib/system/datetime.cs,d1e0507af2af9286

@yuvadm yuvadm added the parsing label Jun 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant