-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (93 loc) · 3.02 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>FCC Go Timestamp Microservice</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
h3 {
border-bottom: 1px solid #6991ad;
}
code {
display: block;
margin: 10px 0;
padding: 10px;
background-color: #cbeaff;
border: 1px solid #6991ad;
border-radius: 3px;
color: #345871;
}
pre {
margin: 0;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
li {
margin: 0 0 24px 0;
padding: 0;
}
.content {
max-width: 600px;
margin: 0 auto;
}
a {
color: #6991ad;
text-decoration: none;
transition: all .4s ease-in-out
}
a:hover {
color: #cbeaff;
text-decoration: none;
}
strong {
display: block;
}
</style>
</head>
<body>
<div class="content">
<h1>Timestamp Microservice</h1>
<p>
This is a timestamp microservice written with
<a href="https://golang.org">Go</a> as a solution to Free Code
Camp's <a href="https://www.freecodecamp.com/challenges/timestamp-microservice">Timestamp Microservice API Project</a>
</p>
<p><a href="https://github.com/jcloutz/fcc-go-timestamp-microservice">View Source</a></p>
<h2>Instructions</h2>
<ul>
<li>
<strong>Unix Timestamp:</strong>
Pass a unix timestamp.
<code>
https://gentle-journey-53163.herokuapp.com/1231231231
</code>
</li>
<li>
<strong>Date String:</strong>
Pass a date string in the below format(s)
<code>
https://gentle-journey-53163.herokuapp.com/December 15, 2015 <br />
https://gentle-journey-53163.herokuapp.com/December%2015,%202015
</code>
</li>
<li>
<strong>Expected Return Value:</strong>
The return will be a json object containing a unix timestamp
and a natural human readable date.
<code><pre>{
"unix": 1450137600,
"natural": "2015-12-15 00:00:00 +0000 UTC"
}</pre>
</code>
</li>
</ul>
</div>
</body>
</html>