The OpenD Programming Language

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()
  2. void toISOString(W writer)
    struct TimeOfDay
    const
    void
    toISOString
    (
    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).toISOString() == "000000");
assert(TimeOfDay(12, 30, 33).toISOString() == "123033");

Meta