Gregorian class

Inheritance

Constructors

Gregorian.new(int year, [int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int millisecond = 0])
factory
Gregorian.fromDateTime(DateTime dt)
factory
Gregorian.fromJulianDayNumber(int jdn, [int hour = 0, int minute = 0, int second = 0, int millisecond = 0])
factory
Gregorian.now()
factory

Properties

day int
final
formatter GregorianFormatter
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hour int
final
julianDayNumber int
final
millisecond int
final
minute int
final
month int
final
monthLength int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
final
time Duration
no setterinherited
weekDay int
no setteroverride
year int
final

Methods

add({int years = 0, int months = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0}) Gregorian
override
addDays(int days) Gregorian
compareTo(Date other) int
Compares this object to another object.
inherited
copy({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond}) Gregorian
override
distanceTo(Date other) int
inherited
isLeapYear() bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
override
toJalali() Jalali
toString() String
A string representation of this object.
override
toUtcDateTime() DateTime
override

Operators

operator +(int days) Gregorian
override
operator -(int days) Gregorian
override
operator <(Date other) bool
inherited
operator <=(Date other) bool
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(Date other) bool
inherited
operator >=(Date other) bool
inherited

Constants

max → const Gregorian
min → const Gregorian