pack

Function to pack a Date 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)
    pure nothrow
    ubyte[]
    pack
    (
    in Date dt
    )
  3. ubyte[] pack(DateTime dt)

Return Value

Type: ubyte[]

Packed ubyte[].

Meta