dnt

Crates.iodnt
lib.rsdnt
version0.1.1
sourcesrc
created_at2020-10-22 18:37:23.047619
updated_at2020-10-22 19:05:19.08726
descriptionSimple date and time formatting using chrono crate
homepagehttps://crates.io/crates/dnt
repositoryhttps://github.com/giripriyadarshan/dnt
max_upload_size
id304430
size5,018
Priyadarshan Giri (giripriyadarshan)

documentation

README

dnt

simple date and time formatting using chrono crate

usage

println!("{}", DnT::date(Local)); //Local is for device's local time
println!("{}", DnT::time(Local));
println!("{}", DnT::dateandtime(Local));
println!("{}", DnT::date(ZoneEast(5.5))); // for timezone towards east
println!("{}", DnT::time(ZoneEast(5.5)));
println!("{}", DnT::dateandtime(ZoneWest(5.5))); // for timezone towards west
Commit count: 10

cargo fmt