toTimeOfDay - multiple declarations
- Function toTimeOfDay
- Function toTimeOfDay
Function toTimeOfDay
Function to extract a TimeOfDay from a text encoded column value.
Text representations of a time of day are as in 14:22:02
Prototype
std .datetime .TimeOfDay toTimeOfDay(
string s
);
Parameters
Name | Description |
---|---|
s | A string representation of the time. |
Returns
A populated or default initialized std.datetime.TimeOfDay struct.
Function toTimeOfDay
Function to extract a TimeOfDay 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.
Prototype
std .datetime .TimeOfDay toTimeOfDay(
const(ubyte[]) a
) pure;
Parameters
Name | Description |
---|---|
a | slice of a protocol packet beginning at the length byte for a chunk of time data. |
Returns
A populated or default initialized std.datetime.TimeOfDay struct.