The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
this
mir
date
this
(short year, Month month, ubyte day)
this
(Date date)
this
(YearMonth yearMonth, AssumePeriod assumePeriod)
this
(YearQuarter yearQuarter, AssumePeriod assumePeriodMonth, AssumePeriod assumePeriodDay)
this
(Timestamp timestamp)
this
(Timestamp timestamp)
this
(const(char)[] str)
this
(YearMonthDay ymd)
version(D_Exceptions)
@
safe
pure @
nogc
@
safe
pure @
nogc
this
(
YearMonthDay
ymd
)
this
(YearQuarter yq, AssumePeriod assumePeriodMonth, AssumePeriod assumePeriodDay)
this
(YearQuarter yq, AssumePeriod assumePeriod)
this
(YearMonth ym, AssumePeriod assumePeriod)
this
(int _year, int _month, int _day)
this
(int day)
Examples
auto
d
=
Date
(
YearMonthDay
(
2020
,
Month
.
may
,
31
));
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