Convert

This service class provides functions to convert between date and time values and their representations.

Members

Static functions

to
T to(string value)

Converts the specified representation into its (date and) time value.

to
T to(string value)

Converts the specified representation into its date value.

to
T to(string value)

Converts the specified representation into its time-of-day value.

to
T to(string value)

Converts the specified representation into its duration value. For decimal fractions, digits representing less than one millisecond are disregarded.

toString
string toString(SysTime time)
void toString(SysTime sysTime, void delegate(const(char)[]) sink)

Converts the specified (date and) time value into its representation.

toString
string toString(Date date)
void toString(Date date, void delegate(const(char)[]) sink)

Converts the specified date into its representation.

toString
string toString(TimeOfDay timeOfDay)
void toString(TimeOfDay timeOfDay, void delegate(const(char)[]) sink)

Converts the specified date and time-of-day value into its representation.

toString
string toString(Duration duration)
void toString(Duration duration, void delegate(const(char)[]) sink)

Converts the specified duration value into its canonical representation.

Meta

Standards

ISO 8601 "Data elements and interchange formats — Information interchange — Representation of dates and times" @Immutable