Skip to content

simple date and time formatting using chrono crate

License

Notifications You must be signed in to change notification settings

giripriyadarshan/dnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

simple date and time formatting using chrono crate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages