The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Duration.opUnary
core
time
Duration
Returns the negation of this
Duration
.
struct
Duration
@
safe
pure const nothrow @
nogc
Duration
opUnary
(
string
op
)
(
)
if
(
op
== "-"
)
Meta
Source
See Implementation
core
time
Duration
functions
opBinary
opBinaryRight
opCast
opCmp
opOpAssign
opUnary
toString
properties
isNegative
max
min
total
zero
templates
split
Returns the negation of this Duration.