toDateTime

Function to extract a DateTime from a binary encoded row.

Time/date structures are packed by the server into a byte sub-packet with a leading length byte, and a minimal number of bytes to embody the data.

  1. DateTime toDateTime(ubyte[] a)
    @safe pure
    DateTime
    toDateTime
    (
    in ubyte[] a
    )
  2. DateTime toDateTime(const(char)[] s)
  3. DateTime toDateTime(ulong x)

Return Value

Type: DateTime

A populated or default initialized std.datetime.DateTime struct.

Meta