The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
opCmp
mir
date
Compares this
Date
with the given
Date
.
@
safe
pure @
nogc
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
mir
date
aliases
date
opCast
toString
classes
DateTimeException
constructors
this
enums
AllowDayOverflow
AssumePeriod
Month
Quarter
functions
add
day
dayNumber
daysToDayOfWeek
maxDay
opBinary
opBinaryRight
opCmp
opOpAssign
quarter
timestamp
toHash
toISOExtString
toISOString
toSimpleString
valid
year
yearIsLeapYear
yearMonthDay
yearQuarter
properties
dayOfGregorianCal
dayOfWeek
dayOfYear
daysInMonth
endOfMonth
endOfQuarter
isAD
isLeapYear
julianDay
max
min
modJulianDay
static functions
fromDayNumber
fromISOExtString
fromISOString
fromSimpleString
fromString
fromYMD
trustedCreate
structs
YearMonth
YearQuarter
variables
month
Compares this Date with the given Date.