DateExtensions extension

on

Properties

daysInMonth List<DateTime>

Available on DateTime, provided by the DateExtensions extension

The list of days in a given month
no setter
firstDayOfMonth DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
firstDayOfWeek DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
isFirstDayOfMonth bool

Available on DateTime, provided by the DateExtensions extension

no setter
isLastDayOfMonth bool

Available on DateTime, provided by the DateExtensions extension

no setter
isLeapYear bool

Available on DateTime, provided by the DateExtensions extension

no setter
isYesterday bool

Available on DateTime, provided by the DateExtensions extension

no setter
lastDayOfMonth DateTime

Available on DateTime, provided by the DateExtensions extension

The last day of a given month
no setter
lastDayOfWeek DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
nextMonth DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
nextWeek DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
previousMonth DateTime

Available on DateTime, provided by the DateExtensions extension

no setter
previousWeek DateTime

Available on DateTime, provided by the DateExtensions extension

no setter

Methods

addOrRemoveDay(int days) → dynamic

Available on DateTime, provided by the DateExtensions extension

to add days to a DateTime add a positive number to remove days pass a negative number
addOrRemoveMinutes(int min) → dynamic

Available on DateTime, provided by the DateExtensions extension

to add min to a DateTime add a positive number to remove min pass a negative number
addOrRemoveMonth(int months) → dynamic

Available on DateTime, provided by the DateExtensions extension

to add month to a DateTime add a positive number to remove years pass a negative number
addOrRemoveSeconds(int sec) → dynamic

Available on DateTime, provided by the DateExtensions extension

to add sec to a DateTime add a positive number to remove sec pass a negative number
addOrRemoveYears(int years) → dynamic

Available on DateTime, provided by the DateExtensions extension

to add years to a DateTime add a positive number to remove years pass a negative number
disAtSameMinuteAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same minute as this.
isAtSameDayAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is on the same day as this.
isAtSameHourAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same hour as this.
isAtSameMicrosecondAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same microsecond as this.
isAtSameMillisecondAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same millisecond as this.
isAtSameMinuteAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same minute as this.
isAtSameMonthAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is in the same month as this.
isAtSameSecondAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is at the same second as this.
isAtSameYearAs(DateTime other) bool

Available on DateTime, provided by the DateExtensions extension

Returns true if other is in the same year as this.
isToday() bool

Available on DateTime, provided by the DateExtensions extension

return true if the date is today
max(DateTime that) DateTime

Available on DateTime, provided by the DateExtensions extension

min(DateTime that) DateTime

Available on DateTime, provided by the DateExtensions extension

return the smaller date between
startOfDay() DateTime

Available on DateTime, provided by the DateExtensions extension

Start time of Date times
startOfMonth() DateTime

Available on DateTime, provided by the DateExtensions extension

startOfYear() DateTime

Available on DateTime, provided by the DateExtensions extension

tomorrow() DateTime

Available on DateTime, provided by the DateExtensions extension

next day
yesterday() DateTime

Available on DateTime, provided by the DateExtensions extension

last day

Operators

operator +(Duration duration) DateTime

Available on DateTime, provided by the DateExtensions extension

Adds this DateTime and Duration and returns the sum as a new DateTime object.
operator -(Duration duration) DateTime

Available on DateTime, provided by the DateExtensions extension

Subtracts the Duration from this DateTime returns the difference as a new DateTime object.

Static Methods

daysInRange(DateTime start, DateTime end) Iterable<DateTime>

Available on DateTime, provided by the DateExtensions extension

Returns a DateTime for each day the given range.
isSameDay(DateTime a, DateTime b) bool

Available on DateTime, provided by the DateExtensions extension

Whether or not two times are on the same day.
isSameWeek(DateTime a, DateTime b) bool

Available on DateTime, provided by the DateExtensions extension