chrono
chrono copied to clipboard
Export `chrono::naive::time::M{AX,IN}_TIME`
Without this, I have to write
let zerotime = NaiveTime::from_hms(0, 0, 0);
multiple times, since NaiveTime::from_hms isn't const.
Prior art: https://docs.rs/time/0.3.4/time/struct.Time.html#associatedconstant.MIDNIGHT.
NaiveTime::MIN was made public in https://github.com/chronotope/chrono/pull/890.
NaiveTime::MAX seems a bit questionable to me. For one because it does not account for leap seconds.