PgTimestamp¶
A PostgreSQL timestamp or timestamptz value. Stores microseconds since
the PostgreSQL epoch (2000-01-01 00:00:00). Special values
I64.max_value() and I64.min_value() represent positive and negative
infinity respectively.
For timestamptz columns, the interpretation depends on the query format:
binary-format results (PreparedQuery) store UTC microseconds; text-format
results (SimpleQuery) store session-local time with the timezone suffix
stripped. When sent as a parameter, PgTimestamp encodes as OID 1114
(timestamp without time zone); the server applies session-timezone
conversion when inserting into a timestamptz column.
Implements¶
- Equatable[PgTimestamp val] ref
Constructors¶
create¶
Parameters¶
- microseconds': I64 val
Returns¶
- PgTimestamp val^
Public fields¶
let microseconds: I64 val¶
Public Functions¶
eq¶
Parameters¶
- that: PgTimestamp val
Returns¶
- Bool val
ne¶
Parameters¶
- that: PgTimestamp val
Returns¶
- Bool val
string¶
Returns¶
- String iso^