Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 522 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 522 Bytes

Timestamp Microservice

User Stories

  • I can pass a string as a parameter, and it will check to see whether that string contains a unix timestamp
  • If it does, it returns both the Unix timestamp and the natural language form of that date.
  • If it does not contain a Unix timestamp, it returns null for those properties.

Example Usage

https://freecodecamp-timestamp-d4n13le.herokuapp.com/1424237800

Example Output

{
  "unix": 1424237800,
  "natural": "February 18, 2015"
}