EndOfUnit extension
- on
Methods
-
endOf(
DurationUnit unit) → DateTime -
Returned object will have same timezone as
this
-
endOfDay(
) → DateTime - Returns end of the day
-
endOfHour(
) → DateTime - Returns end of the hour
-
endOfLocalWeek(
[int? weekStart]) → DateTime -
Returns start of the week based on
weekStart
. If it's null, it usesMoment.defaultLocalization.weekStart
-
endOfMillisecond(
) → DateTime - Returns end of the millisecond
-
endOfMinute(
) → DateTime - Returns end of the minute
-
endOfMonth(
) → DateTime - Returns end of the month
-
endOfSecond(
) → DateTime - Returns end of the second
-
endOfYear(
) → DateTime - Returns end of the year