Skip to content
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

如何使用datetime包获得指定时区的时间呢 #120

Closed
Will-Liang opened this issue Jul 26, 2023 · 2 comments
Closed

如何使用datetime包获得指定时区的时间呢 #120

Will-Liang opened this issue Jul 26, 2023 · 2 comments

Comments

@Will-Liang
Copy link

如何使用datetime包获得指定时区的时间呢

@duke-git
Copy link
Owner

如何使用datetime包获得指定时区的时间呢

目前缺少该特性,下个版本v2.2.4会添加支持,或者有好的实现也欢迎提PR。

@duke-git
Copy link
Owner

duke-git commented Aug 1, 2023

v2.2.4 datetime package函数FormatTimeToStr,FormatStrToTime,NowDateOrTime,Timestamp支持传入时区参数,

@duke-git duke-git closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants