tango.time.chrono.Hijri

License:
BSD style:

Version:
Mid 2005: Initial release Apr 2007: reshaped

author:
John Chapman, Kris

class Hijri: tango.time.chrono.Calendar.Calendar;
Represents the Hijri calendar.

immutable uint HIJRI_ERA;
Represents the current era.

const 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.

Params:
uint year An integer representing the year.
uint month An integer representing the month.
uint day An integer representing the day.
uint hour An integer representing the hour.
uint minute An integer representing the minute.
uint second An integer representing the second.
uint millisecond An integer representing the millisecond.
uint era An integer representing the era.

Returns:
A Time set to the specified date and time.

const DayOfWeek getDayOfWeek(const(Time) time);
Overridden. Returns the day of the week in the specified Time.

Params:
const(Time) time A Time value.

Returns:
A DayOfWeek value representing the day of the week of time.

const uint getDayOfMonth(const(Time) time);
Overridden. Returns the day of the month in the specified Time.

Params:
const(Time) time A Time value.

Returns:
An integer representing the day of the month of time.

const uint getDayOfYear(const(Time) time);
Overridden. Returns the day of the year in the specified Time.

Params:
const(Time) time A Time value.

Returns:
An integer representing the day of the year of time.

const uint getMonth(const(Time) time);
Overridden. Returns the day of the year in the specified Time.

Params:
const(Time) time A Time value.

Returns:
An integer representing the day of the year of time.

const uint getYear(const(Time) time);
Overridden. Returns the year in the specified Time.

Params:
const(Time) time A Time value.

Returns:
An integer representing the year in time.

const uint getEra(const(Time) time);
Overridden. Returns the era in the specified Time.

Params:
const(Time) time A Time value.

Returns:
An integer representing the ear in time.

const uint getDaysInMonth(uint year, uint month, uint era);
Overridden. Returns the number of days in the specified year and month of the specified era.

Params:
uint year An integer representing the year.
uint month An integer representing the month.
uint era An integer representing the era.

Returns:
The number of days in the specified year and month of the specified era.

const uint getDaysInYear(uint year, uint era);
Overridden. Returns the number of days in the specified year of the specified era.

Params:
uint year An integer representing the year.
uint era An integer representing the era.

Returns:
The number of days in the specified year in the specified era.

const uint getMonthsInYear(uint year, uint era);
Overridden. Returns the number of months in the specified year of the specified era.

Params:
uint year An integer representing the year.
uint era An integer representing the era.

Returns:
The number of months in the specified year in the specified era.

const bool isLeapYear(uint year, uint era);
Overridden. Indicates whether the specified year in the specified era is a leap year.

Params:
uint year An integer representing the year.

Params:
uint era An integer representing the era.

Returns:
true is the specified year is a leap year; otherwise, false.

const uint[] eras();
Property. Overridden. Retrieves the list of eras in the current calendar.

Returns:
An integer array representing the eras in the current calendar.

const uint id();
Property. Overridden. Retrieves the identifier associated with the current calendar.

Returns:
An integer representing the identifier of the current calendar.


Page generated by Ddoc. Copyright (c) 2005 John Chapman. All rights reserved