Class Index | File Index

Classes


Class JulianDate


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

NB. The Julian Day (JulianDay) object is a different object than a date in the Julian calendar and the two are not to be confused. The Julian Day object represents time as a number of whole and fractional days since the beginning of the epoch, whereas a date in the Julian calendar is a regular date that signifies year, month, day, etc. using the rules of the Julian calendar. The naming of Julian Days and the Julian calendar are unfortunately close, and come from history.

If called with another Julian 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").


Defined in: ilib-full-dyn.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JulianDate(params)
Field Summary
Field Attributes Field Name and Description
 
day
The day of the month.
 
The day of the year.
 
The hour of the day.
 
The millisecond of the second.
 
The minute of the hours.
 
The month number, ranging from 1 (January) to 12 (December).
 
The second of the minute.
 
Year in the Julian calendar.
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.
Class Detail
JulianDate(params)
Parameters:
{Object=} params
parameters that govern the settings and behaviour of this Julian date
Field Detail
{number} day
The day of the month. This ranges from 1 to 31.

{number} dayOfYear
The day of the year. Ranges from 1 to 383.

{number} hour
The hour of the day. This can be a number from 0 to 23, as times are stored unambiguously in the 24-hour clock.

{number} millisecond
The millisecond of the second. Ranges from 0 to 999.

{number} minute
The minute of the hours. Ranges from 0 to 59.

{number} month
The month number, ranging from 1 (January) to 12 (December).

{number} second
The second of the minute. Ranges from 0 to 59.

{number} year
Year in the Julian calendar.
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

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Oct 21 2019 22:58:32 GMT-0700 (PDT)