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