The OpenD Programming Language

Duration.opBinary

Multiplies or divides the duration by an integer value.

The legal types of arithmetic for Duration using this operator overload are

Duration*long-->Duration
Duration/long-->Duration
  1. Duration opBinary(Duration rhs)
  2. Duration opBinary(long value)
    struct Duration
    @safe pure const nothrow @nogc
    opBinary
    (
    string op
    )
    (
    long value
    )
    if (
    op == "*" ||
    op == "/"
    )
  3. long opBinary(Duration rhs)

Parameters

value long

The value to multiply this Duration by.

Meta