1.0.1 • Published 3 years ago

@bakedoatmeal/date-lib v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

A simple library including getters and formatters for Dates

d.year

Returns the full year ex: 1994

d.yr

Returns the shortened year ex: 94

d.month

Returns the spelled out month ex: 'September'

d.mon

Returns a shorthand for the month ex: 'Sep'

d.day

Returns the day of the week spelled out ex: 'Monday'

d.dy

Returns the shorthand for the day of the week ex: 'Mon'

d.date

Returns the date ex: 1

d.hours

Returns the hours

d.mins

Returns the minutes

d.secs

Returns the seconds

d.format(mask)

Returns a formatted date string based on the provided mask string

d.when()

Returns the number of days, months or years from current date

1.0.1

3 years ago

1.0.0

3 years ago