Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Timestamp Microservice is a project from freeCodeCamp's Backend Development and APIs curriculum. It is designed to create a simple API that converts human-readable dates and UNIX timestamps, providing both formats as part of the response.

Features
  1. Timestamp Conversion:
    • Accepts a date string or UNIX timestamp as a parameter
    • Returns both the UNIX timestamp and the UTC date format

  2. Default Timestamp:
    • When no date is provided, it returns the current timestamp (UNIX and UTC).

  3. Error Handling:
    • Returns an error message for invalid date inputs.

    How It Works
    Input: A GET request with a date or timestamp parameter.

    Output: A JSON response containing:
    unix: The UNIX timestamp.
    utc: The UTC date format.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages