toDate - multiple declarations
Function toDate
Function to extract a Date from a binary encoded row.
std .datetime .date .Date toDate
(
in const(ubyte[]) a
) pure @safe;
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.
Parameters
Name | Description |
---|---|
a | slice of a protocol packet beginning at the length byte for a chunk of Date data. |
Returns
A populated or default initialized std
struct.
Function toDate
Function to extract a Date from a text encoded column value.
std .datetime .date .Date toDate
(
const(char)[] s
) @safe;
Text representations of a Date are as in 2011-11-11
Parameters
Name | Description |
---|---|
s | A string representation of the time difference. |
Returns
A populated or default initialized std
struct.