-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimefmt.html
More file actions
35 lines (35 loc) · 976 Bytes
/
Copy pathtimefmt.html
File metadata and controls
35 lines (35 loc) · 976 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Time formatter</title>
<script type="text/javascript" src="timefmt.js"></script>
</head>
<body>
<h1>Time formatter</h1>
<p style="font-weight: bold;">Converts POSIX time values to human-readable format.</p>
<form>
<p>Input format:
<select id="input_format" name="input_format">
<option value="base10">Decimal (base-10)</option>
<option value="base16" selected>Hexadecimal (base-16)</option>
</select>
</p>
<p>Input data:
<input id="input_text" type="text" name="text" length="20" />
</p>
<p>Output format:
<select id="output_format" name="output_format">
<option value="utc" selected>UTC time</option>
<option value="local">Local time</option>
</select>
</p>
<p>
<input type="button" name="format" value="Format" onclick="formatClicked()" />
</p>
<p>Output:
<span id="output_text"></span>
</p>
</form>
</body>
</html>