-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (30 loc) · 1.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TimeStamp Microserver</title>
</head>
<body>
<h1>TimeStamp Microservice created for <a href="http://freecodecamp.com">Free Code Camp</a></h1>
<h2>User Stories Implemented:</h2>
<ol>
<li> I can pass a string as a parameter, and it will check to see whether that string contains either a unix timestamp or a natural language date (example: January 1, 2016)</li>
<li> If it does, it returns both the Unix timestamp and the natural language form of that date.</li>
<li>If it does not contain a date or Unix timestamp, it returns null for those properties.</li>
</ol>
<h2>Usage</h2>
<p>
https://timestamp-microservice-xfilipe.herokuapp.com/December%2015,%202015
</p>
<p>
https://timestamp-microservice-xfilipe.herokuapp.com/December 15, 2015
</p>
<p>
https://timestamp-microservice-xfilipe.herokuapp.com/1450137600
</p>
<h2>Output:</h2>
<p>
{ "unix": 1450137600, "natural": "December 15, 2015" }
</p>
</body>
</html>