- 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) (calendar - moon phase test) |
||
Line 193: | Line 193: | ||
| {{#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 | |||
{{#invoke:timeconv|calendar|year={{CURRENTYEAR}}|month={{CURRENTMONTH}}|day={{CURRENTDAY}}|mark=yes}} |
Revision as of 21:41, 3 February 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
<toggledisplay>
- 113, season of star, summer and wood
month: | 1 | 2 | -2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 29 | 30 | 30 | 29 | 30 | 30 | 30 | 29 | 30 | 29 | 29 |
- 114, season of sun, autumn and metal
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 29 | 30 | 29 | 30 | 30 | 30 | 29 | 30 | 30 | 29 |
- 115, season of moon, winter and earth
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 30 | 29 | 30 | 30 | 30 |
- 116, season of star, spring and fire
month: | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 30 | 30 | 29 |
- 117, season of sun, summer and water
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 30 | 29 |
- 118, season of moon, autumn and wood
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 30 | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 |
- 119, season of star, winter and metal
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 |
- 120, season of sun, spring and earth
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 30 | 29 | 30 | 30 | 29 | 29 | 30 | 29 | 30 |
- 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 |
- 122, season of star, autumn and water
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 29 | 30 | 29 | 30 | 30 | 30 | 29 | 30 | 30 | 29 | 29 |
- 123, season of sun, winter and wood
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 29 | 30 | 29 | 30 | 30 | 29 | 30 | 30 | 30 | 29 |
- 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 |
- 125, season of star, summer and earth
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 30 | 29 | 30 |
- 126, season of sun, autumn and fire
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 30 |
- 127, season of moon, winter and water
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 |
- 128, season of star, spring and wood
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 | 30 | 29 |
- 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 |
- 130, season of moon, autumn and earth
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 30 | 30 | 29 | 30 | 30 | 29 | 30 | 29 | 30 | 29 | 30 |
- 131, season of star, winter and fire
month: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
days: | 29 | 29 | 30 | 29 | 30 | 30 | 29 | 30 | 30 | 30 | 29 | 29 |
</toggledisplay>
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.28 00:00 (GMT)
Current Gregorian date: | 2024.03.28 (Thursday)) |
Current Gensokyo date: | 138/11/19 (Thursday) |
0/1/1: | 1885.05.15 (Friday)) |
Calendar test
- Moon phases
- 1 - new moon
- 2 - first quarter
- 3 - full moon
- 4 - last quarter
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 |