-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function「彼年何年」issue: use 黄帝纪元四千七百一十六年 as an example #489
Comments
The input of 彼年何年 is Unix timestamp. See also https://github.com/LingDong-/wenyan-lang/pull/487#issuecomment-570838787 |
Thanks for the reply. Here is the definition from Li Fa: 注曰「「彼年何年。同Javascript之new Date(x * 1000).getFullYear() for modern dates, in Chinese calendar也。」」 注曰「「彼年積何年。同Javascript之new Date(x * 1000).getFullYear() + 2697, in Chinese calendar也。」」 From "減其以二六九七。乃得矣。" I think it's based on Chinese calendar. If the input is the number of seconds after epoch time in Linux, that output might make sense. (4716 secs past beginning of 1970 is Year 1969 in Chinese calendar) Should we name it "彼時何年" instead of "彼年何年" to avoid confusion since the input is in secs instead of years? |
Good suggestion, however, there is only one problem, which is |
Does it mean 彼秒何年? |
黄帝纪元四千七百一十六年 is Year 2018, yet the function returns 1969:
, we get:
一千九百六十九
Is this a bug?
The text was updated successfully, but these errors were encountered: