Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Are there *any* good JavaScript libraries
2 points by paulddraper on Nov 30, 2019 | hide | past | favorite | 2 comments
Every JS library I've seen (currently using moment) seems extremely simplistic with very few primitives for working with time.

As a former Java programmer, I'm used to having all of the following (in the standard lib no less!):

* instant: a point of time

* duration: time amount, e.g. 500 seconds

* period: time interval amount (e.g. 3 days)

* offset: time difference from UTC

* timezone: regional offset system

* local/offset/timezone date: date

* local/offset/timezone time: time

* local/offset/timezone datetime: date and time

For example, I work with a lot of legal calendar events (local date) and contract durations (period), yet everything I find requires awkwardly couching it in terms of instants.




(pending verification) Location:(pending verification) Age:(pending verification)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: