1.0.9 • Published 2 years ago

@garrigarrison/datetime v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

DateTime for convert timestamp and reverse

Converting date and time to timestamp and reverse converting

npm npm Coverage Status Build Status Minified Size

License: MIT

function toTimestamp

input date format: YYYY-MM-DD, DD.MM.YYYY, hh:mm, YYYY-MM-DDThh:mm, YYYY-MM-DD hh:mm, DD.MM.YYYYThh:mm, DD.MM.YYYY hh:mm output result timestamp with timezone

toDateString

input timestamp output date format DD.MM.YYYY or null

toISODateString

input timestamp output date format YYYY-MM-DD or null

toDateLongString

input timestamp output date format DD month YYYY or null

toISOString

input timestamp, withSeconds = true withSeconds = true (default): output date format YYYY-MM-DDThh:mm:ss or null withSeconds = false: output date format YYYY-MM-DDThh:mm or null

toDateTimeString

input timestamp, withSeconds = true withSeconds = true (default): output date format DD.MM.YYYY hh:mm:ss or null withSeconds = false: output date format DD.MM.YYYY hh:mm or null

toTimeString

input timestamp, withSeconds = true withSeconds = true (default): output date format hh:mm:ss or null withSeconds = false: output date format hh:mm or null

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago