Skip to main content

POSTGRES_EPOCH_MICROS

Constant POSTGRES_EPOCH_MICROS 

Source
pub const POSTGRES_EPOCH_MICROS: i64 = 946_684_800_000_000; // 946_684_800_000_000i64
Available on crate features source-postgres-cdc and source-rest only.
Expand description

Microseconds between the Unix epoch (1970-01-01) and the Postgres epoch (2000-01-01). Used for converting between Postgres timestamps and Unix time.