GregorianBased

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

eras
uint[] eras()
Undocumented in source. Be warned that the author may not have intended to support it.
getEra
uint getEra(const(Time) time)
Undocumented in source. Be warned that the author may not have intended to support it.
getYear
uint getYear(const(Time) time)
Undocumented in source. Be warned that the author may not have intended to support it.
toTime
Time toTime(uint year, uint month, uint day, uint hour, uint minute, uint second, uint millisecond, uint era)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

currentEra
uint currentEra [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Gregorian

toTime
alias toTime = Calendar.toTime
Undocumented in source.
generic
Gregorian generic;

static shared instance

Type
enum Type
Undocumented in source.
AD_ERA
anonymousenum AD_ERA

Represents the current era.

toTime
Time toTime(uint year, uint month, uint day, uint hour, uint minute, uint second, uint millisecond, uint era)

Overridden. Returns a Time value set to the specified date and time in the specified _era.

getDayOfWeek
DayOfWeek getDayOfWeek(const(Time) time)

Overridden. Returns the day of the week in the specified Time.

getDayOfMonth
uint getDayOfMonth(const(Time) time)

Overridden. Returns the day of the month in the specified Time.

getDayOfYear
uint getDayOfYear(const(Time) time)

Overridden. Returns the day of the year in the specified Time.

getMonth
uint getMonth(const(Time) time)

Overridden. Returns the month in the specified Time.

getYear
uint getYear(const(Time) time)

Overridden. Returns the year in the specified Time.

getEra
uint getEra(const(Time) time)

Overridden. Returns the era in the specified Time.

getDaysInMonth
uint getDaysInMonth(uint year, uint month, uint era)

Overridden. Returns the number of days in the specified _year and _month of the specified _era.

getDaysInYear
uint getDaysInYear(uint year, uint era)

Overridden. Returns the number of days in the specified _year of the specified _era.

getMonthsInYear
uint getMonthsInYear(uint year, uint era)

Overridden. Returns the number of months in the specified _year of the specified _era.

isLeapYear
bool isLeapYear(uint year, uint era)

Overridden. Indicates whether the specified _year in the specified _era is a leap _year.

calendarType
Type calendarType [@property getter]

Property. Retrieves the GregorianTypes value indicating the language version of the Gregorian.

eras
uint[] eras [@property getter]

Property. Overridden. Retrieves the list of eras in the current calendar.

id
uint id [@property getter]

Property. Overridden. Retrieves the identifier associated with the current calendar.

split
void split(const(Time) time, uint year, uint month, uint day, uint doy, uint dow, uint era)

Overridden. Get the components of a Time structure using the rules of the calendar. This is useful if you want more than one of the given components. Note that this doesn't handle the time of day, as that is calculated directly from the Time struct.

addMonths
Time addMonths(const(Time) t, int nMonths, bool truncateDay)

Overridden. Returns a new Time with the specified number of months added. If the months are negative, the months are subtracted.

addYears
Time addYears(const(Time) t, int nYears)

Overridden. Add the specified number of years to the given Time.

splitDate
void splitDate(long ticks, uint year, uint month, uint day, uint dayOfYear, uint era)
Undocumented in source. Be warned that the author may not have intended to support it.
extractPart
uint extractPart(long ticks, DatePart part)
Undocumented in source. Be warned that the author may not have intended to support it.
getDateTicks
long getDateTicks(uint year, uint month, uint day, uint era)
Undocumented in source. Be warned that the author may not have intended to support it.
staticIsLeapYear
bool staticIsLeapYear(uint year, uint era)
Undocumented in source. Be warned that the author may not have intended to support it.
argumentError
void argumentError(const(char[]) str)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta