Commit d23e049 1 parent b64cedc commit d23e049 Copy full SHA for d23e049
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -545,11 +545,6 @@ impl<Tz: TimeZone> DateTime<Tz> {
545
545
. expect ( "writing rfc3339 datetime to string should never fail" ) ;
546
546
result
547
547
}
548
-
549
- /// The minimum possible `DateTime<Utc>`.
550
- pub const MIN_UTC : DateTime < Utc > = DateTime { datetime : NaiveDateTime :: MIN , offset : Utc } ;
551
- /// The maximum possible `DateTime<Utc>`.
552
- pub const MAX_UTC : DateTime < Utc > = DateTime { datetime : NaiveDateTime :: MAX , offset : Utc } ;
553
548
}
554
549
555
550
impl Default for DateTime < Utc > {
@@ -831,6 +826,11 @@ impl DateTime<Utc> {
831
826
pub fn parse_from_str ( s : & str , fmt : & str ) -> ParseResult < DateTime < Utc > > {
832
827
DateTime :: < FixedOffset > :: parse_from_str ( s, fmt) . map ( |result| result. into ( ) )
833
828
}
829
+
830
+ /// The minimum possible `DateTime<Utc>`.
831
+ pub const MIN_UTC : Self = DateTime { datetime : NaiveDateTime :: MIN , offset : Utc } ;
832
+ /// The maximum possible `DateTime<Utc>`.
833
+ pub const MAX_UTC : Self = DateTime { datetime : NaiveDateTime :: MAX , offset : Utc } ;
834
834
}
835
835
836
836
impl < Tz : TimeZone > DateTime < Tz >
You can’t perform that action at this time.
0 commit comments