HebrewDate class

A date in the Hebrew (Jewish) calendar.

Inheritance

Constructors

HebrewDate({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, double? julianDay, double? rd, int? unixtime, String? locale, String? timezone, bool? dst})
Create a Hebrew date from components, a Julian Day, or unix time.

Properties

day int?
The day of the month in this date's own calendar, or null if unspecified.
no setterinherited
dst bool?
Optional DST disambiguation for the overlap hour at the end of DST, when the same local wall time occurs twice. Null when unspecified.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hour int?
The hour of the day (0–23), or null if unspecified.
no setterinherited
millisecond int?
The millisecond of the second (0–999), or null if unspecified.
no setterinherited
minute int?
The minute of the hour (0–59), or null if unspecified.
no setterinherited
month int?
The month (1-based) in this date's own calendar, or null if unspecified.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int?
The second of the minute (0–59), or null if unspecified.
no setterinherited
timezone String?
The IANA timezone id associated with this date, or null if none.
no setteroverride
tzOffsetDays double
Timezone offset in fractional days (east of UTC), cached after the first timezone resolution so repeated queries avoid redundant DST lookups.
getter/setter pairinherited
year int?
The year in this date's own calendar, or null if unspecified.
no setterinherited

Methods

adjustRdForTimezone(double rd) double
Adjust the rata die rd (from-components / wall-clock) to UTC by subtracting the timezone offset. Updates tzOffsetDays as a side-effect.
inherited
after(int dayOfWeek) ILibCalendarDate
The nearest date strictly after this date whose day of week is dayOfWeek.
inherited
before(int dayOfWeek) ILibCalendarDate
The nearest date strictly before this date whose day of week is dayOfWeek.
inherited
calcTimezoneOffset() → void
Resolve and cache tzOffsetDays for the from-UTC-instant path.
inherited
firstSunday(int year) double
The rata die of the first Sunday on or after 1 Tishri of year.
override
getCalendar() String
The name of the calendar this date belongs to (e.g. 'gregorian').
override
getDayOfWeek() int
The day of the week for this date: 0 = Sunday through 6 = Saturday.
override
getDayOfYear() int
The ordinal day number within the current year (1 = January 1st).
override
getDays() int
The day-of-month component in this calendar.
override
getEra() int
The era of this date: a calendar-specific code (e.g. 1 = CE, -1 = BCE for the Gregorian calendar).
override
getHours() int
The hour component (0–23).
override
getJulianDay() double
The Julian Day equivalent to this date's instant as a number.
override
getMilliseconds() int
The millisecond component (0–999).
override
getMinutes() int
The minute component (0–59).
override
getMonths() int
The month component (1-based) in this calendar.
override
getRataDie() double
The Rata Die (fixed day) number of this date's instant, regardless of its calendar.
override
getRataDieInstance() ILibRataDie
The ILibRataDie instance backing this date.
override
getSeconds() int
The second component (0–59).
override
getTime() int
The unix time (milliseconds since the epoch) equivalent to this date, or -1 when the instant falls outside the representable range.
inherited
getTimeExtended() int
The extended unix time equivalent to this date, covering instants outside the range representable by getTime.
inherited
getTimeZone() String?
The timezone associated with this date as a string, or null if none.
inherited
getWallClockRd() double
The rata die of this date's wall-clock instant (UTC rata die + tzOffsetDays).
inherited
getWeekOfMonth(String? locale) int
The ordinal number of the week within the month.
override
getWeekOfYear() int
The ISO 8601 week number within the current year.
inherited
getYears() int
The year component in this calendar.
override
newDateFromRd(double rd) HebrewDate
Create a new date of this calendar type from the given rata die rd.
override
newRd({required int year, required int month, required int day, required int hour, required int minute, required int second, required int millisecond}) ILibRataDie
Create the ILibRataDie for this calendar from the given components.
override
newRdFromRd(double rd) ILibRataDie
Create the ILibRataDie for this calendar from an existing rata die rd.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onOrAfter(int dayOfWeek) ILibCalendarDate
The nearest date on or after this date whose day of week is dayOfWeek.
inherited
onOrBefore(int dayOfWeek) ILibCalendarDate
The nearest date on or before this date whose day of week is dayOfWeek (0 = Sunday … 6 = Saturday), evaluated in wall-clock time.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited