The OpenD Programming Language

Interval.length

Returns the duration between begin and end.

struct Interval(TP)
@property const pure nothrow
length
()

Examples

assert(Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)).length ==
       dur!"days"(5903));

Meta