pack

Function to pack a DateTime into a binary encoding for transmission to the server.

Time/date structures are packed into a string of bytes with a leading length byte, and a minimal number of bytes to embody the data.

  1. ubyte[] pack(TimeOfDay tod)
  2. ubyte[] pack(Date dt)
  3. ubyte[] pack(DateTime dt)
    pure nothrow
    ubyte[]
    pack
    (
    in DateTime dt
    )

Return Value

Type: ubyte[]

Packed ubyte[].

Meta