-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
timezone support for strftime #37
Comments
It looks like named timezones are just ignored in parse.rs. The comment suggests that the C's original
However using time offsets does work
My workaround's going to be string replacement (for now). Perhaps there could be another parse function that does what's expected? |
My current thought is to drop the "support" for |
The minimal support for |
Closing in favor of #193, which would include this. |
When I use time::strftime("%Y-%m-%d %H:%M:%S %Z", &time::now()).unwrap(), I get timestamp without timezone. Here is output I get. 2014-12-18 12:32:31
How do I get timezone printed?
Here is equivalent python code
import datetime
import pytz
d = datetime.datetime.now(pytz.timezone("America/New_York"))
d.strftime("%Y-%m-%d %H:%M:%S %Z")
'2014-12-18 12:41:19 EST'
The text was updated successfully, but these errors were encountered: