-
Notifications
You must be signed in to change notification settings - Fork 49
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
Error using Chinese time units to output #34
Comments
兄弟,帮你搞定了
|
@TangMonk 对,这个包如果要使用中文时区需要自定时间单位,想问问作者有什么其他方案么 |
应该没了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because Chinese time units do not need sigular + 's' suffix
so i must use
units, _ := durafmt.DefaultUnitsCoder.Decode("年:年,周:周,天:天,时:时,分:分,秒:秒,毫秒:毫秒,微秒:微秒")
instead ofThe text was updated successfully, but these errors were encountered: