Class Index | File Index

Classes


Class ilib.Date.CopticDate


Extends ilib.Date.EthiopicDate.
Construct a new date object for the Coptic Calendar. The constructor can be called with a parameter object that contains any of the following properties:

If called with another Coptic date argument, the date components of the given date are copied into the current 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").

Depends directive: !depends copticdate.js
Defined in: ilib-dyn-full.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class ilib.Date.EthiopicDate:
day, dayOfYear, hour, millisecond, minute, month, second, year
Method Summary
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.
Methods borrowed from class ilib.Date:
after, before, firstSunday, getJSDate, getJulianDay, getRataDie, getTime, getTimeExtended, getTimeZone, getWeekOfMonth, getWeekOfYear, onOrAfter, onOrBefore, setJulianDay, setRd, setTime, setTimeZone
Class Detail
ilib.Date.CopticDate(params)
Parameters:
{Object=} params
parameters that govern the settings and behaviour of this Coptic 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

{ilib.Date.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:
{ilib.Date.RataDie} the new RD instance for the given params

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 02 2016 16:00:49 GMT-0800 (PST)