The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
YearMonth.this
mir
date
YearMonth
this
(short year, Month month)
this
(short year, ushort month)
this
(Date date)
this
(YearMonthDay yearMonthDay)
struct
YearMonth
@
safe
pure nothrow @
nogc
this
(
YearMonthDay
yearMonthDay
)
this
(YearQuarter yearQuarter, AssumePeriod assumePeriod)
this
(Timestamp timestamp)
this
(const(char)[] str)
Examples
auto
ym
=
YearMonth
(
YearMonthDay
(
2000
,
Month
.
dec
,
31
));
Meta
Source
See Implementation
mir
date
YearMonth
aliases
opBinaryRight
opCast
constructors
this
functions
add
addMonths
addQuarters
addYears
endOfMonth
lengthOfMonth
opBinary
opCmp
opOpAssign
quarter
timestamp
toHash
toISOExtString
trustedWithDayOfMonth
properties
dayOfYear
daysInMonth
isAD
isLeapYear