mysql-native v3.0.0
API Reference Home: [This Version] [Latest Version] [Other Versions]
toTimeOfDay - multiple declarations
Function toTimeOfDay
Function to extract a TimeOfDay from a binary encoded row.
std .datetime .date .TimeOfDay toTimeOfDay
(
const(ubyte[]) a
);
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 time data. |
Returns
A populated or default initialized std.datetime.TimeOfDay struct.
Function toTimeOfDay
Function to extract a TimeOfDay from a text encoded column value.
std .datetime .date .TimeOfDay toTimeOfDay
(
string s
);
Text representations of a time of day are as in 14:22:02
Parameters
Name | Description |
---|---|
s | A string representation of the time. |
Returns
A populated or default initialized std.datetime.TimeOfDay struct.