Skip to content

azzang/timestamp-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timestamp Microservice

Functionality:

  • checks whether parameter string contains either a unix timestamp or a natural language date (e.g. January 1, 2016)
  • If so, both the Unix timestamp and the natural language form of the date are returned
  • Else, null is returned for both properties

URL Examples

https://polar-beach-99790.herokuapp.com/December%2015,%202015

https://polar-beach-99790.herokuapp.com/1450137600

* Note: The service expects spaces in natural language dates to be percent encoded.

** Note: The service assumes Greenwich Mean Time

Response Examples

{ "natural": "June 4, 1955", "unix": -460018800 }

{ "natural": null, "unix": null }

About

convert to and from unix time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published