Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softwareventures/date
An abstract date, with no associated time zone
https://github.com/softwareventures/date
Last synced: 3 days ago
JSON representation
An abstract date, with no associated time zone
- Host: GitHub
- URL: https://github.com/softwareventures/date
- Owner: softwareventures
- License: isc
- Created: 2020-03-09T13:53:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T18:46:09.000Z (10 days ago)
- Last Synced: 2024-11-09T15:20:26.426Z (6 days ago)
- Language: TypeScript
- Size: 7.68 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# date
An abstract date, with no associated time zone.
## Why?
Use this type when you just want to represent a day, month and year in the
Gregorian Calendar, and the timezone is either not relevant or represented
elsewhere.The native JavaScript `Date` type includes a time of day and timezone offset.
These are a common source of errors in code that manipulates calendar dates, in
particular off-by-one errors caused by date manipulations that cross
daylight-savings boundaries.## Install
```bash
npm install --save @softwareventures/date
```or
```bash
yarn add @softwareventures/date
```