- Welcome to Touhou Wiki!
- Registering is temporarily disabled. Check in our Discord server to request an account and for assistance of any kind.
User:DennouNeko/Time test: Difference between revisions
Jump to navigation
Jump to search
DennouNeko (talk | contribs) |
DennouNeko (talk | contribs) (restoring 3 seasons for demonstrating leap month) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 106: | Line 106: | ||
== Month sequence test == | == Month sequence test == | ||
{{#invoke:timeconv|test_month|season=121}} | {{#invoke:timeconv|test_month|season=121}} | ||
{{#invoke:timeconv|test_month|season=124}} | {{#invoke:timeconv|test_month|season=124}} | ||
{{#invoke:timeconv|test_month|season=129}} | {{#invoke:timeconv|test_month|season=129}} | ||
== Direct conversion tests == | == Direct conversion tests == | ||
Line 147: | Line 129: | ||
|- | |- | ||
| 119/4 | | 119/4 | ||
| {{#invoke:timeconv|gen_to_greg|119|4}} | | {{#invoke:timeconv|gen_to_greg|119|4}}<br/>or<br/>{{#invoke:timeconv|gen_to_greg|119|4|1}}{{#invoke:timeconv|gen_to_greg|119|5}} | ||
|- | |- | ||
| 118/7/15 | | 118/7/15 | ||
Line 193: | Line 175: | ||
| {{#invoke:timeconv|jd_to_gregorian|jd={{#invoke:timeconv|gensokyo_to_jd|season=0|month=1|day=1|hour=0}}|timezone=0}} | | {{#invoke:timeconv|jd_to_gregorian|jd={{#invoke:timeconv|gensokyo_to_jd|season=0|month=1|day=1|hour=0}}|timezone=0}} | ||
|} | |} | ||
== Calendar test == | |||
;Moon phases | |||
: 1 - new moon | |||
: 2 - first quarter | |||
: 3 - full moon | |||
: 4 - last quarter | |||
=== Current day === | |||
{{#invoke:timeconv|calendar|year={{CURRENTYEAR}}|month={{CURRENTMONTH}}|day={{CURRENTDAY}}|mark=yes}} | |||
=== Gensokyo date === | |||
{{#invoke:timeconv|calendar|season=118|month=4}} |
Latest revision as of 16:27, 29 December 2013
Disclaimer: This is experimental, purely speculational work. It should serve at most for approximation of dates.
It uses Module:Timeconv for conversions between Gregorian date and Julian day, or between Julian day and Gensokyo's Lunisolar calendar.
Assumptions:
- The calendar is based on old Japanese lunisolar calendar (that was based on old Chinese lunisolar calendar).
- Margin of error of dates specified at Gensokyo Timeline is no more than +/- 2 days
- Last month in season contains the spring equinox (in Chinese calendar it contained winter solstice) and the season starts with month uzuki, numbered as 1.
- There may be a leap month at (almost) any point of the year, it is marked with negative number of preceding month.
Conversion verification
Original | Julian date | Converted |
---|---|---|
118/4/15 | 2452863.5 | 118/4/15 (Tuesday) |
118/11/29 | 2453083.5 | 118/11/29 (Friday) |
118/-11/29 | 2453113.5 | 118/18446744073709551605/29 (Sunday) |
118/12/29 | 2453142.5 | 118/12/29 (Monday) |
119/1/1 | 2453144.5 | 119/1/1 (Wednesday) |
119/5/14 | 2453275.5 | 119/5/14 (Monday) |
119/6/15 | 2453306.5 | 119/6/15 (Thursday) |
Time difference tests
Gregorian | Gensokyo | delta JD | corrected Gensokyo | |
---|---|---|---|---|
2003.08.12 | 118/4/15 | 0 | 118/4/15 (Tuesday) | |
delta | 270 | 270 | ||
2004.05.08 | 118/12/20 | 0 | 118/12/20 (Saturday) | |
delta | 10 | 11 | ||
2004.05.18 | 119/1/1 | -1 | 118/12/30 (Tuesday) | |
delta | 132 | 131 | ||
2004.09.27 | 119/5/14 | 0 | 119/5/14 (Monday) | |
delta | 32 | 31 | ||
2004.10.29 | 119/6/15 | 1 | 119/6/16 (Friday) |
Leap season test
113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 |
yes | no | no | yes | no | yes | no | no | yes | no | no | yes | no | yes | no | no | yes | no | no |
Month sequence test
- 121, season of moon, summer and fire
month: | 1 | 2 | 3 | 4 | -4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 30 | 29 | 30 | 29 | 30 | 30 | 29 | 30 | 30 | 29 | 29 | 30 |
- 124, season of moon, spring and metal
month: | 1 | 2 | -2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 30 | 30 | 29 | 30 |
- 129, season of sun, summer and metal
month: | 1 | 2 | 3 | 4 | 5 | 6 | -6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 30 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 |
Direct conversion tests
When day is not specified, the function returns approximate beginning of a given month.
※: This column or row assumes that uzuki = 4th month.
Gensokyo to Gregorian
Usage:
{{#invoke:timeconv | gen_to_greg | <season> | <month> | [day] }}
You may also specify an optional shift parameter to make uzuki the 4th month (current timeline notation).
{{#invoke:timeconv | gen_to_greg | <season> | <month> | [day] | shift=yes}}
Examples:
Gensokyo | Gregorian |
---|---|
0/1/1 | 1885/05/15 |
119/4 | ~2004/08/16 or 2004/08/16~2004/09/14 |
118/7/15 | 2003/08/12 ※ |
118/3/29 | 2004/05/17 ※ |
Gregorian to Gensokyo
Usage:
{{#invoke:timeconv | greg_to_gen | <year> | <month> | [day] }}
You may also specify an optional shift parameter to make uzuki the 4th month (current timeline notation).
{{#invoke:timeconv | greg_to_gen | <year> | <month> | [day] | shift=yes}}
Examples:
Gregorian | Gensokyo | Gensokyo shift ※ |
---|---|---|
1885/05/15 | 0/1/1 | 0/4/1 |
2007/11 | ~122/6/22 or 122/6/22~122/7/22 |
~122/9/22 or 122/9/22~122/10/22 |
2004/05/17 | 118/12/29 | 118/3/29 |
Season 0 and current date
Calculations for: 2024.03.29 00:00 (GMT)
Current Gregorian date: | 2024.03.29 (Friday)) |
Current Gensokyo date: | 138/11/20 (Friday) |
0/1/1: | 1885.05.15 (Friday)) |
Calendar test
- Moon phases
- 1 - new moon
- 2 - first quarter
- 3 - full moon
- 4 - last quarter
Current day
Mon | Tue | Wed | Thu | Fri | Sat | Sun |
---|---|---|---|---|---|---|
11 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 82 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
163 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 244 | 25 | 26 | 27 | 28 | 29 |
30 |
Gensokyo date
Mon | Tue | Wed | Thu | Fri | Sat | Sun |
---|---|---|---|---|---|---|
11 | 2 | 3 | 4 | 5 | 6 | |
7 | 82 | 9 | 10 | 11 | 12 | 13 |
14 | 153 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 234 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |