The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
add
mir
date
YearMonthDay
add
(long months, AllowDayOverflow allowOverflow)
@
safe
pure @
nogc
@
safe
pure nothrow @
nogc
ref
YearMonthDay
add
(
string
units
: "months"
)
(
long
months
,
AllowDayOverflow
allowOverflow
=
AllowDayOverflow.yes
)
YearMonthDay
add
(long quarters)
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