toDateTime - multiple declarations
Function toDateTime
Function to extract a DateTime from a binary encoded row.
std .datetime .date .DateTime toDateTime
(
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 DateTime data |
Returns
A populated or default initialized std
struct.
Function toDateTime
Function to extract a DateTime from a text encoded column value.
std .datetime .date .DateTime toDateTime
(
const(char)[] s
) @safe;
Text representations of a DateTime are as in 2011-11-11 12:20:02
Parameters
Name | Description |
---|---|
s | A string representation of the time difference. |
Returns
A populated or default initialized std
struct.
Function toDateTime
Function to extract a DateTime from a ulong.
std .datetime .date .DateTime toDateTime
(
ulong x
) @safe;
This is used to support the TimeStamp struct.
Parameters
Name | Description |
---|---|
x | A ulong e.g. 20111111122002UL. |
Returns
A populated std
struct.