https://github.com/dfirebaugh/timestamp-api
https://github.com/dfirebaugh/timestamp-api
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dfirebaugh/timestamp-api
- Owner: dfirebaugh
- Created: 2016-12-21T15:24:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T03:25:26.000Z (over 8 years ago)
- Last Synced: 2025-05-18T09:37:40.321Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Timestamp Microservice
This microservice takes a string as a parameter and will check to see whether that string contains either a unix timestamp or a natural language date (example: January 1, 2016).
If it does, it returns both the Unix timestamp and the natural language form of that date.
If it does not contain a date or Unix timestamp, it returns null for those properties.
[demo](https://dfire-timestamp-api.glitch.me/)
### Example Usage
`https://dfire-timestamp-api.glitch.me/January 1, 2016`
will return
`{"natural":"January 01, 2016","unix":1451606400}`