Timestamp Microservice

This microservice can handle requests to convert a date string into a Unix timestamp and a UTC timestamp. The microservice can be accessed at:

GET /api/:date? - Converts a date string into a Unix timestamp and a UTC timestamp

The date string should be in the format of either a Unix timestamp or a natural language date (e.g. January 1, 2022). If no date is provided, the current date and time will be used.

Example Usage

GET /api/1643577600

GET /api/January%201,%202022

Example Output

{ "unix": 1643577600, "utc": "Fri, 31 Jan 2022 00:00:00 GMT" }

Try yourself

Enter a date in either Unix timestamp or UTC format and get the converted result.