TimeSpan.opBinary

Scale the TimeSpan by the specified amount. This should not be used to convert to a different unit. Use the unit accessors instead. This should only be used as a scaling mechanism. For example, if you have a timeout and you want to sleep for twice the timeout, you would use timeout * 2. Returns a new TimeSpan.

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

Parameters

v long

A multiplier or divisor to use for scaling this time span.

Return Value

Type: TimeSpan

A new TimeSpan that is scaled by v

Meta