-
Notifications
You must be signed in to change notification settings - Fork 45
/
Julian.html
executable file
·1 lines (1 loc) · 4.01 KB
/
Julian.html
1
<!DOCTYPE html><html lang="en-US"><meta name="keywords" content="Julian dates, sexagenary dates, conversion, calculator"><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><head><title>Julian and Sexagenary Date Calculator</title><link rel="stylesheet" href="calendar_min.css"><script src="Julian_c.js"></script><base href="https://ytliu0.github.io/ChineseCalendar/"><script async src="https://www.googletagmanager.com/gtag/js?id=G-SN0QJRDXXT"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-SN0QJRDXXT")</script></head><body><div id="wrapper0" style="display:none"><div id="menu"></div><div id="language"></div><h1>Julian and Sexagenary Date Calculator</h1><br><form id="calendarDate" name="calendarDate" action="" method="get"><table><tr><th>Calendar date</th><td>Year: <input type="number" id="year" step="1" min="-10000" max="10000"></td><td>Month: <input type="number" id="month" step="1" min="1" max="12"></td><td>Date: <input type="number" id="date" step="1" min="1" max="31"></td></tr><tr><th rowspan="2">Time (24-hour system)</th><td colspan="3"><input type="radio" name="time" id="midnight" onclick="changeInputTime(0,0)"><label for="midnight">Midnight</label> <input type="radio" name="time" id="noon" onclick="changeInputTime(0,12)"><label for="noon">Noon</label> <input type="radio" name="time" id="custom" onclick="changeInputTime(0,1)"><label for="custom">Custom</label></td></tr><tr><td>Hour: <input type="number" id="hour" step="1" min="0" max="23"></td><td>Minute: <input type="number" id="minute" step="1" min="0" max="59"></td><td>Second: <input type="number" id="second" step="1" min="0" max="59"></td></tr></table><p><input id="tabBtn" type="button" value="Submit table" onclick="getJDSexagenary(0,this.form)"> and execute calendar date <span style="font-size:150%">→</span> Julian date and sexagenary date</p></form><br><p>Julian date: <input type="text" name="Julian date" id="JD" size="25"></p><p><input type="button" value="Submit" id="JDBtn" onclick="JDtoCalendar(0)"> and execute Julian date <span style="font-size:150%">→</span> calendar date and sexagenary date</p><br><div id="err"></div><div id="output"></div><br><hr><h2>Explanation</h2><ol><li>Julian dates are the number of days and fractions counting from the time origin at noon on January 1, 4713 BCE (before <a href="https://en.wikipedia.org/wiki/Common_Era" target="_blank">common era</a>. A time zone is not specified here and it is assumed that the time origin (noon on January 1, 4713 BCE) and the specified time are both in the same time zone.</li><li>Sexagenary numbers refer to the numerical order of the sexagenary names appearing in <a href="sexagenary.html#sexagenary">Table 2</a> on the sexagenary cycle page: 1 refers to jiǎ zǐ, 2 refers yǐ chǒu, 3 refers to bǐng yín and so on.</li><li>Dates are given in Gregorian calendar beginning on Oct. 15, 1582 and in Julian calendar before that day. The day after Oct 4, 1582 was Oct. 15, 1582. Dates before 8 CE are given in the <a href="https://en.wikipedia.org/wiki/Proleptic_Julian_calendar" target="_blank">proleptic Julian calendar</a>.</li><li>Entering years in BCE: 0 = 1 BCE, -1 = 2 BCE, -2 = 3 BCE and so on.</li><li>The input date may be changed after submission in order for the date to be consistent with the actual calendar date. For example, if Feb 31, 2019 (Year: 2019, Month: 2, Date: 31) is submitted, it will be interpreted as 3 days after Feb 28, 2019 and will be changed to Mar 3, 2019. If the input date is between Oct. 5 and Oct. 14 in 1582, ten days will be added to it.</li><li>Sexagenary dates and days of week are computed using Equations (1) and (4) on the <a href="sexagenary.html">sexagenary cycle page</a>.</li></ol><br><br></div><noscript><h1>Julian and Sexagenary Date Calculator</h1><h2>Oops!</h2><p>This calculator requires JavaScript to run!</p><p>Please enable JavaScript and reload.</p></noscript><script>init(0)</script></body></html>