这篇文章上次修改于 929 天前,可能其部分内容已经发生变化,如有疑问可询问作者。

V2EX 上看到的:

new Date().toLocaleString('ja-JP-u-ca-chinese')

输出类似:

庚子年7月24日 9:45:03