Skip to content

PgTimestamp

[Source]

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.

class val PgTimestamp is
  Equatable[PgTimestamp val] ref

Implements


Constructors

create

[Source]

new val create(
  microseconds': I64 val)
: PgTimestamp val^

Parameters

  • microseconds': I64 val

Returns


Public fields

let microseconds: I64 val

[Source]


Public Functions

eq

[Source]

fun box eq(
  that: PgTimestamp val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: PgTimestamp val)
: Bool val

Parameters

Returns


string

[Source]

fun box string()
: String iso^

Returns