The OpenD Programming Language

TimeOfDay.toISOExtString

Converts this TimeOfDay to a string with the format HH:MM:SS. If writer is set, the resulting string will be written directly to it.

  1. string toISOExtString()
  2. void toISOExtString(W writer)
    struct TimeOfDay
    const
    void
    toISOExtString
    (
    W
    )
    (
    ref W writer
    )
    if (
    isOutputRange!(W, char)
    )

Parameters

writer W

A char accepting output range

Return Value

Type: void

A string when not using an output range; void otherwise.

Examples

assert(TimeOfDay(0, 0, 0).toISOExtString() == "00:00:00");
assert(TimeOfDay(12, 30, 33).toISOExtString() == "12:30:33");

Meta