The OpenD Programming Language

Duration.toString

Converts this Duration to a string.

The string is meant to be human readable, not machine parseable (e.g. whether there is an 's' on the end of the unit name usually depends on whether it's plural or not, and empty units are not included unless the Duration is zero). Any code needing a specific string format should use total or split to get the units needed to create the desired string format and create the string itself.

The format returned by toString may or may not change in the future.

  1. void toString(SinkT sink)
    struct Duration
    const scope
    void
    toString
    (
    SinkT
    )
    (
    scope SinkT sink
    )
  2. string toString()

Parameters

sink SinkT

A sink object, expected to be a delegate or aggregate implementing opCall that accepts a scope const(char)[] as argument.

Meta