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

Add tsu prefix to use UTC time zone #6

Merged
merged 1 commit into from
Oct 15, 2017

Conversation

maximbaz
Copy link
Contributor

While working on my project, besides missing nanoseconds precision I often needed timestamps to be parsed in UTC time zone. I'm tired of manually converting that in my head 🙂

break
case INPUT_FORMAT.TS_MS:
return moment.unix(parseInt(input) / 1000)
result = moment.unix(parseInt(input) / 1000)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be done for nanoseconds as well

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#5 has been merged, you can now do it for nanoseconds.

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done now 👍

@benoitzohar benoitzohar merged commit a3a0de8 into benoitzohar:master Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants