TimeOfDay.toISOString

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

  1. string toISOString()
    struct TimeOfDay
    const @safe pure nothrow
    string
    toISOString
    ()
  2. void toISOString(W writer)

Return Value

Type: string

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

Examples

assert(TimeOfDay(0, 0, 0).toISOString() == "000000");
assert(TimeOfDay(12, 30, 33).toISOString() == "123033");

Meta