-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (43 loc) · 1.64 KB
/
index.html
File metadata and controls
46 lines (43 loc) · 1.64 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<title>Timestamp microservice</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script></script>
<style type = 'text/css'>
body {
font-family: 'Roboto', sans-serif;
padding-top: 50px;
padding-left: 20px;
}
span {
text-align: center;
}
</style>
</head>
<body id = 'format'>
<div>
<h1>API Basejump: Timestamp microservice</h1>
<h3> User stories: </h3>
1) 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).
</br>
2) If it does, it returns both the Unix timestamp and the natural language form of that date.
</br>
3) If it does not contain a date or Unix timestamp, it returns null for those properties.
</br>
<h3>Example usage:</h3>
<p><mark>
https://codefay-timestamp-api.herokuapp.com/date/December%2015,%202015
</br>
https://codefay-timestamp-api.herokuapp.com/date/1450137600
</mark></p>
<h3>Example output:</h3>
<p><mark>
{ "unix": 1450137600, "natural": "December 15, 2015" }
</mark></p>
</div>
<span>
<p> Written and coded by <a href="https://www.freecodecamp.com/codefay">CodeFay</a>
</p>
</span>
</body>
</html>