Logo

Programming-Idioms

History of Idiom 184 > diff from v22 to v23

Edit summary for version 23 by jonwolski:
New Rust implementation by user [jonwolski]

Version 22

2019-09-30, 20:01:04

Version 23

2019-10-04, 22:45:06

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Code
let t = chrono::Utc::now().date().succ().to_string();
Origin
https://gist.github.com/rust-play/5d2e354bfabee0a1d608032f7f5b9fe8
Demo URL
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5d2e354bfabee0a1d608032f7f5b9fe8