-
Notifications
You must be signed in to change notification settings - Fork 1
/
julian.html
116 lines (94 loc) · 3.88 KB
/
julian.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<title>Time & Date</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/julian.css">
<link rel="icon" href="favicon.png" type="image/png">
</head>
<body>
<header>
<h1>Time Converter</h1>
<!-- <p>Convert between calendar and julian day number</p> -->
<small>Year between -13000 to 16800, in gregorian calendar.</small>
</header>
<form id="dateForm">
<div class="form-group" id="ymd">
<div class="formInput"> <label for="yearInput">Year</label>
<input type="number" id="yearInput" class="input-number" placeholder="2023" min="-13200" max='17191'>
</div>
<div class="formInput"> <label for="monthInput">Month</label>
<input type="number" id="monthInput" class="input-number" placeholder="1" min="1" max="12">
</div>
<div class="formInput">
<label for="dayInput">Day</label>
<input type="number" id="dayInput" class="input-number" placeholder="1" min="1" max="31">
</div>
</div>
<div class="form-group" id="hms">
<div class="formInput"> <label for="hourInput">Hour</label>
<input type="number" id="hourInput" class="input-number" placeholder="0" min="0" max="23">
</div>
<div class="formInput"> <label for="minuteInput">Minute</label>
<input type="number" id="minuteInput" class="input-number" placeholder="0" min="0" max="59">
</div>
<div class="formInput"><label for="secondInput">Second</label>
<input type="number" id="secondInput" class="input-number" placeholder="0" min="0" max="59">
</div>
</div>
<div class="form-group" id="tz">
<div class="formInput"> <label for="time-zone">UTC</label>
<input type="number" id="time-zone" class="input-number" placeholder="8" min="-14" max="14" step=0.0001>
</div>
</div>
<button type="button" id='clear'>Clear</button>
<button type="button" onclick="updateTime()" id="updateTime">Convert</button>
</form>
<div class="tjd">
<div class="tjd-button-container">
<form class='tjdForm'>
<div class="formInput"> <label for="utInput">UT (Universal Time)</label>
<input type="number" id="utInput" class="input-number" value="0" step=0.000001>
</div>
<button type="button" onclick="updateTimeFromUT()" id="updateTimeFromUT">Convert</button>
</form>
</div>
<div class="tjd-button-container">
<form class='tjdForm'>
<div>
<div class="formInput"><label for="ttInput">TT (Terrestrial Time)</label>
<input type="number" class="input-number" id="ttInput" value="0" step=0.000001>
</div>
</div>
<button type="button" onclick="updateTimeFromTT()" id="updateTimeFromTT">Convert</button>
</form>
</div>
</div>
<div class="tjd">
<div class="tjd-button-container">
<form class='tjdForm'>
<div>
<div class="formInput"><label for="tssInput">Timestamp (sec)</label>
<input type="number" class="input-number" id="tssInput" value="0" step=0.000001>
</div>
</div>
<button type="button" onclick="updateTimeFromTSSec()" id="updateTimeFromTSSec">Convert</button>
</form>
</div>
<div class="tjd-button-container">
<form class='tjdForm'>
<div>
<div class="formInput"><label for="tsInput">Timestamp (millisec)</label>
<input type="number" class="input-number" id="tsInput" value="0" step=0.000001>
</div>
</div>
<button type="button" onclick="updateTimeFromTS()" id="updateTimeFromTS">Convert</button>
</form>
</div>
</div>
<div id="jde"></div>
<script src="./javascript/julian.js" type="module"></script>
</body>
</html>