DateTime.opBinary

Gives the difference between two DateTimes.

The legal types of arithmetic for DateTime using this operator are

DateTime-DateTime-->duration
  1. DateTime opBinary(Duration duration)
  2. Duration opBinary(DateTime rhs)
    struct DateTime
    const @safe pure nothrow @nogc
    Duration
    opBinary
    (
    string op
    )
    if (
    op == "-"
    )

Meta