Monday 10 April 2017

Writing a library: return Date or Unix timestamp?

I'm currently writing a library to be published on npm. Some of the data returned is a date/time.Is the best practice to return a JavaScript Date object or a simple unix timestamp number?

Submitted April 10, 2017 at 07:29PM by wtf_are_my_initials

No comments:

Post a Comment