Time.opBinary

Adds or subtracts the specified time span to the time, returning a new time.

  1. Time opBinary(TimeSpan t)
    struct Time
    opBinary
    (
    string op
    )
    if (
    op == "+" ||
    op == "-"
    )
  2. TimeSpan opBinary(Time t)

Parameters

t TimeSpan

A TimeSpan value.

Return Value

Type: Time

A Time that is the sum or difference of this instance and t.

Meta