DateExtensions extension
- on
Properties
-
daysInMonth
→ List<
DateTime> -
Available on DateTime, provided by the DateExtensions extension
The list of days in a given monthno 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 monthno 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 ifotheris at the same minute asthis. -
isAtSameDayAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris on the same day asthis. -
isAtSameHourAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris at the same hour asthis. -
isAtSameMicrosecondAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris at the same microsecond asthis. -
isAtSameMillisecondAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris at the same millisecond asthis. -
isAtSameMinuteAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris at the same minute asthis. -
isAtSameMonthAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris in the same month asthis. -
isAtSameSecondAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris at the same second asthis. -
isAtSameYearAs(
DateTime other) → bool -
Available on DateTime, provided by the DateExtensions extension
Returns true ifotheris in the same year asthis. -
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