-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (30 loc) · 1.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Timestamp microservice</title>
</head>
<body>
<h1 >FreeCodeCamp API project: Timestamp microservice</h1>
<blockquote>
<h2> User stories:</h2>
<ol>
<li>I can pass a string as a parameter, and it will check
to see whether that string contains either
<ul>
<li>a unix timestamp</li>
<li>or a natural language date (example: January 1, 2016)</li>
</ul>
</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>
</blockquote>
<h3>Example usage:</h3>
<pre><code>https://timestamp-ms.herokuapp.com/December%2015,%202015</code></pre>
<pre><code>https://timestamp-ms.herokuapp.com/1450137600</code></pre>
<h3>Example output:</h3>
<code>{ "unix": 1450137600, "natural": "December 15, 2015" }</code></br>
</body>
</html>