https://github.com/heapwolf/date-at
easily create relative dates. ie: date('+1day')
https://github.com/heapwolf/date-at
Last synced: about 1 year ago
JSON representation
easily create relative dates. ie: date('+1day')
- Host: GitHub
- URL: https://github.com/heapwolf/date-at
- Owner: heapwolf
- Created: 2017-01-25T18:56:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T19:10:29.000Z (over 9 years ago)
- Last Synced: 2025-04-13T12:17:02.935Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
Easily create relative dates.
# BUILD
[](https://travis-ci.org/0x00A/date-at)
# USAGE
```js
var date = require('date-at')
console.log(date('+1day'))
```
## UNITS
### YEARS
`years`, `year`, `yr`, `Y`
### MONTHS
`months`, `month`, `mo`, `M`
### WEEKS
`weeks`, `week`, `w`
### DAYS
`days`, `day`, `d`
### HOURS
`hours`, `hour`, `h`
### MINUTES
`minutes`, `minute`, `min`, `m`
### SECONDS
`seconds`, `second`, `sec`, `s`
### MILLISECONDS
`milliseconds`, `millisecond`, `ms`