toTimeOfDay - multiple declarations

Function toTimeOfDay

Function to extract a TimeOfDay from a binary encoded row.

std.datetime.date.TimeOfDay toTimeOfDay (
  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

NameDescription
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 (
  const(char)[] s
) @safe;

Text representations of a time of day are as in 14:22:02

Parameters

NameDescription
s A string representation of the time.

Returns

A populated or default initialized std.datetime.TimeOfDay struct.