Skip to content

PaulMainboard/Timestamp-Microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timestamp-Microservice

Synopsis

This is a program that takes a date parameter and return a JSON object containing the timestamp and the numerical date format of that parameter that was entered.

You can visit the site here.

Code Example

When visiting the site, if no parameters are given, a JSON object is created with two properties named date and timestamp. Both of these properties are set to null. Also you will presented with the instructions on have to use the site.

Instructions

The site takes on parameter named date. To set this parameter, put a question mark "?" at the end of the URL and enter the desired timestamp or correctly formatted date.

Here are a list of examples:

https://paul-mainboard-timestamp.herokuapp.com/?date=2/18/2018

https://paul-mainboard-timestamp.herokuapp.com/?date=Feb%2018%202018

https://paul-mainboard-timestamp.herokuapp.com/?date=1518912000

https://paul-mainboard-timestamp.herokuapp.com/?date=February%2018%202018

https://paul-mainboard-timestamp.herokuapp.com/?date=2018-2-18

https://paul-mainboard-timestamp.herokuapp.com/?date=02-18-2018

The output of all the examples above is:

{"date":"02-18-2018","timestamp":1518912000}

Motivation

To test my PHP development skills and get me in the habit of building and creating projects. Installation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors