1.0.6 • Published 6 months ago

hb-date-utils v1.0.6

Weekly downloads
18
License
ISC
Repository
-
Last release
6 months ago

HealthBeats Date Utils package

Uses only native Intl JS date-time functions with no dependencies on other external packages.

Date formatting:

Dates are return in the format 'DD Mmm YYYY'. E.g. 15 Jan 2020

With time formatting:

Optional parameter Accepts 'hh:mm' / 'hh:mm:ss' / 'hh:mm a' / 'hh:mm:ss a'. 'hh:mm' returns time in 24 hr format. E.g. 17:35 'hh:mm a' returns time in meridiem format. E.g. 05:35 PM / 05:35 AM

With timezone:

Optional paramter Accepts timezone to offset time accordingly.

Various other utility functions

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago