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()
    struct TimeOfDay
    const @safe pure nothrow
    string
    toISOExtString
    ()
  2. void toISOExtString(W writer)

Return Value

Type: string

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