X Tutup
The Wayback Machine - https://web.archive.org/web/20200708013251/https://github.com/sdispater/pendulum/issues/435
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

parsing token 'x' in documentation parse to milliseconds timestamp not microsends timestamp #435

Open
Vexling opened this issue Jan 10, 2020 · 0 comments

Comments

@Vexling
Copy link

@Vexling Vexling commented Jan 10, 2020

Parsing token 'x' according to documentation it should parse to microseconds timestamp but it parses to milliseconds timestamp. Not sure what was intended here but there is a discrepancy.
code:
_TOKENS = ( ... "x": lambda dt: "{:d}".format(dt.int_timestamp * 1000 + dt.microsecond // 1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup