We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent815a5d3 commite19b3dcCopy full SHA for e19b3dc
postgres-types/src/jiff_01.rs
@@ -1,8 +1,7 @@
1
use bytes::BytesMut;
2
use jiff_01::{
3
civil::{Date,DateTime,Time},
4
- tz::TimeZone,
5
-Span,Timestamp,Zoned,
+Span,Timestamp,
6
};
7
use postgres_protocol::types;
8
use std::error::Error;
@@ -13,11 +12,11 @@ const fn base() -> DateTime {
13
12
DateTime::constant(2000,1,1,0,0,0,0)
14
}
15
16
-/// The number of seconds from 2000-01-01 00:00:00 UTC to the Unix epoch.
17
-constY2K_EPOCH:i64 =946684800;
+/// The number of seconds fromthe Unix epoch to2000-01-01 00:00:00 UTC.
+constPG_EPOCH:i64 =946684800;
18
19
fnbase_ts() ->Timestamp{
20
-Timestamp::new(Y2K_EPOCH,0).unwrap()
+Timestamp::new(PG_EPOCH,0).unwrap()
21
22
23
impl<'a>FromSql<'a>forDateTime{