The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Duration.opCmp
core
time
Duration
Compares this
Duration
with the given
Duration
.
struct
Duration
@
safe
pure const nothrow @
nogc
int
opCmp
(
Duration
rhs
)
Return Value
Type:
int
this < rhs
< 0
this == rhs
0
this > rhs
> 0
Meta
Source
See Implementation
core
time
Duration
functions
opBinary
opBinaryRight
opCast
opCmp
opOpAssign
opUnary
toString
properties
isNegative
max
min
total
zero
templates
split
Compares this Duration with the given Duration.