The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
YearQuarter.this
mir
date
YearQuarter
this
(short year, Quarter quarter)
this
(short year, Month month)
this
(Date date)
this
(YearMonthDay yearMonthDay)
this
(YearMonth yearMonth)
this
(Timestamp timestamp)
struct
YearQuarter
version(D_Exceptions)
@
safe
pure @
nogc
this
(
Timestamp
timestamp
)
Examples
import
mir
.
timestamp
;
auto
ts
=
Timestamp
(
2020
,
4
);
auto
yq
=
YearQuarter
(
ts
);
Meta
Source
See Implementation
mir
date
YearQuarter
aliases
opBinaryRight
opCast
constructors
this
functions
add
addQuarters
addYears
opBinary
opOpAssign
timestamp
properties
day
dayOfQuarter
dayOfYear
daysInMonth
isAD
isLeapYear
month