The OpenD Programming Language

YearQuarter

Represents a date as a pair of years and quarters.

Constructors

this
this(short year, Quarter quarter)
this
this(short year, Month month)
this
this(Date date)
this
this(YearMonthDay yearMonthDay)
this
this(YearMonth yearMonth)
this
this(Timestamp timestamp)

Members

Aliases

opBinaryRight
alias opBinaryRight(string op : "+") = opBinary!"+"
opCast
alias opCast(T : Timestamp) = timestamp

Functions

add
deprecated YearQuarter add(long quarters)
add
deprecated YearQuarter add(long years)
addQuarters
YearQuarter addQuarters(long quarters)
addYears
YearQuarter addYears(long years)
opBinary
int opBinary(YearQuarter rhs)
opBinary
YearQuarter opBinary(int rhs)
opOpAssign
YearQuarter opOpAssign(int rhs)
timestamp
Timestamp timestamp()

Properties

day
AssumePeriod day [@property setter]
dayOfQuarter
int dayOfQuarter(AssumePeriod assumePeriodMonth, AssumePeriod assumePeriodDay)
AssumePeriod dayOfQuarter [@property setter]

Day of the quarter this Date is on.

dayOfYear
int dayOfYear(AssumePeriod assumePeriodMonth, AssumePeriod assumePeriodDay)
AssumePeriod dayOfYear [@property setter]

Day of the year this Date is on.

daysInMonth
AssumePeriod daysInMonth [@property setter]

The last day in the month that this Date is in.

isAD
bool isAD [@property getter]

Whether the current year is a date in A.D.

isLeapYear
bool isLeapYear [@property getter]

Whether this Date is in a leap year.

month
AssumePeriod month [@property setter]

Meta