2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
7
Task/Date-format/Rust/date-format.rust
Normal file
7
Task/Date-format/Rust/date-format.rust
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extern crate chrono;
|
||||
use chrono::*;
|
||||
fn main(){
|
||||
let now : DateTime<UTC> = UTC::now();
|
||||
println!("{}", now.format("%Y-%m-%d").to_string());
|
||||
println!("{}", now.format("%A, %B %d, %Y").to_string());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue