BrownUniversity/brown_js_utilities

Create helpers to convert timestamps to seconds and milliseconds

Opened this issue · 0 comments

Sometimes we need to work with Unix Epoch timestamps that are in seconds or milliseconds. In my case, I have a timestamp in seconds and it looks like the Javascript Date constructor accepts timestamps in milliseconds. It is a simple conversion (* 1000), but it would be great to already have methods to accomplish either.