User:DennouNeko/Time test

From Touhou Wiki
Jump to navigation Jump to search

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[edit]

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[edit]

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[edit]

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[edit]

  • 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[edit]

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[edit]

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[edit]

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[edit]

Calculations for: 2020.09.21 00:00 (GMT)

Current Gregorian date: 2020.09.21 (Monday))
Current Gensokyo date: 135/5/5 (Monday)
0/1/1: 1885.05.15 (Friday))

Calendar test[edit]

Moon phases
1 - new moon
2 - first quarter
3 - full moon
4 - last quarter

Current day[edit]

135 - sun, winter and earth
5 - Leaf Month
MonTueWedThuFriSatSun
   11234
5678291011
121314151631718
192021222324425
2627282930  

Gensokyo date[edit]

118 - moon, autumn and wood
4 - Book Month
MonTueWedThuFriSatSun
 1123456
782910111213
141531617181920
212223424252627
282930