We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
因为不同地区的首选格式不同,这里还提供了一些特殊标识时用于moment的本地格式化。在这些格式中,格式标识大小写作用相同:
可能会出现时区不准确的情况,比如转换成国际时间后会+8小时,可以在转换前调用utc():
moment(time).utc().format()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
format()参数
本地化格式
因为不同地区的首选格式不同,这里还提供了一些特殊标识时用于moment的本地格式化。在这些格式中,格式标识大小写作用相同:
可能会出现时区不准确的情况,比如转换成国际时间后会+8小时,可以在转换前调用utc():
The text was updated successfully, but these errors were encountered: