TimeSpan.opBinary

Add or subtract the TimeSpan given to this TimeSpan returning a new TimeSpan.

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

Parameters

t TimeSpan

A TimeSpan value to add or subtract

Return Value

Type: TimeSpan

A TimeSpan value that is the result of this instance, the operation, and t.

Meta