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
Source Code:
extern crate time; fn main() { let utc = time::now_utc(); let local = time::now(); println!("utc: {}", utc.rfc822()); println!("local: {}", local.rfc822()); }
Console Output:
utc: Fri, 29 Aug 2014 08:05:12 GMT local: Fri, 29 Aug 2014 16:05:12 strftime: can't understand this format Z
According to the document of this API, the correct output should be:
utc: Fri, 29 Aug 2014 08:05:12 GMT local: Fri, 29 Aug 2014 16:05:12 PST
The text was updated successfully, but these errors were encountered:
Yes, you are correct. It occurs because %Z format specifier is not implemented in strftime for now. (see #2350)
%Z
strftime
Sorry, something went wrong.
This issue has been moved to the time repo: time-rs/time#64
Auto merge of rust-lang#16841 - Veykril:macarons, r=Veykril
a9a26c1
internal: Use assoc items as anchors for spans This reduces the amount of macro call invalidations a bit
No branches or pull requests
Source Code:
Console Output:
According to the document of this API, the correct output should be:
The text was updated successfully, but these errors were encountered: