WesternDateCalculation class

Converting logic for WesternDate.

Core calculation and algorithm for Western dates.

Constructors

WesternDateCalculation()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getJulianDayNumberOfEndOfMonth(int year, int month, {MmCalendarConfig? config}) int
Get Julian day number for end of month.
getJulianDayNumberOfStartOfMonth(int year, int month, {MmCalendarConfig? config}) int
Get Julian day number for start of month.
getLengthOfMonth(int year, int month, {MmCalendarConfig? config}) int
Find the length of a month.
julianToWestern({required double julianDay, MmCalendarConfig? config, double? sg}) WesternDate
Convert Julian Day Number to WesternDate.
timeToDay(double hour, double minute, double second) double
Convert time → fraction of day (starting at 12 noon).
toJulian({required WesternDate westernDate, MmCalendarConfig? config, double? sg}) double
Convert WesternDate to Julian day number.
westernToJulian({required int year, required int month, required int day, MmCalendarConfig? config, double? sg}) double
Convert WesternDate to Julian day number.
westernToJulianWithTime({required int year, required int month, required int day, required int hour, required int minute, required int second, MmCalendarConfig? config, double? sg}) double
Convert WesternDate with time to Julian day number.