Class EthiopicDate
Extends
IDate.
Construct a new date object for the Ethiopic Calendar. The constructor can be called
with a parameter object that contains any of the following properties:
- unixtime - sets the time of this instance according to the given
unix time. Unix time is the number of milliseconds since midnight on Jan 1, 1970 (Gregorian).
- julianday - the Julian Day to set into this date
- year - any integer
- month - 1 to 13, where 1 means Maskaram, 2 means Teqemt, etc., and 13 means Paguemen
- day - 1 to 30
- hour - 0 to 23. A formatter is used to display 12 hour clocks, but this representation is always done with an unambiguous 24 hour representation
- minute - 0 to 59
- second - 0 to 59
- millisecond - 0 to 999
- locale - the TimeZone instance or time zone name as a string of this ethiopic date. The date/time is kept in the local time. The time zone is used later if this date is formatted according to a different time zone and the difference has to be calculated, or when the date format has a time zone component in it.
- timezone - the time zone of this instance. If the time zone is not given, it can be inferred from this locale. For locales that span multiple time zones, the one with the largest population is chosen as the one that represents the locale.
- date - use the given intrinsic Javascript date to initialize this one.
If the constructor is called with no arguments at all or if none of the properties listed above from unixtime through millisecond are present, then the date components are filled in with the current date at the time of instantiation. Note that if you do not give the time zone when defaulting to the current time and the time zone for all of ilib was not set with ilib.setTimeZone(), then the time zone will default to UTC ("Universal Time, Coordinated" or "Greenwich Mean Time").
Defined in: EthiopicDate.js.
Constructor Attributes | Constructor Name and Description |
---|---|
EthiopicDate(params)
|
Method Attributes | Method Name and Description |
---|---|
Return the name of the calendar that governs this date.
|
|
Return the day of the week of this date.
|
|
newRd(params)
Return a new RD for this date type using the given params.
|
Class Detail
EthiopicDate(params)
- Parameters:
- {Object=} params
- parameters that govern the settings and behaviour of this Ethiopic date
Method Detail
{string}
getCalendar()
Return the name of the calendar that governs this date.
- Returns:
- {string} a string giving the name of the calendar
{number}
getDayOfWeek()
Return the day of the week of this date. The day of the week is encoded
as number from 0 to 6, with 0=Sunday, 1=Monday, etc., until 6=Saturday.
- Returns:
- {number} the day of the week
{RataDie}
newRd(params)
Return a new RD for this date type using the given params.
- Parameters:
- {Object=} params
- the parameters used to create this rata die instance
- Returns:
- {RataDie} the new RD instance for the given params