toDate

Function to extract a Date 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. MySQLDate toDate(ubyte[] a)
    pure
    toDate
    (
    in ubyte[] a
    )
  2. MySQLDate toDate(string s)

Return Value

Type: MySQLDate

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

Meta