The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Date.opCmp
std
datetime
date
Date
Compares this
Date
with the given
Date
.
struct
Date
const @
safe
pure nothrow @
nogc
int
opCmp
(
Date
rhs
)
Return Value
Type:
int
this < rhs
< 0
this == rhs
0
this > rhs
> 0
Meta
Source
See Implementation
std
datetime
date
Date
constructors
this
functions
add
diffMonths
opBinary
opCmp
opOpAssign
roll
toISOExtString
toISOString
toSimpleString
toString
properties
day
dayOfGregorianCal
dayOfWeek
dayOfYear
daysInMonth
endOfMonth
isAD
isLeapYear
isoWeek
isoWeekAndYear
isoWeekYear
julianDay
max
min
modJulianDay
month
year
yearBC
static functions
fromISOExtString
fromISOString
fromSimpleString
Compares this Date with the given Date.