EndOfUnitMoment extension
- on
Methods
-
endOf(
DurationUnit unit) → Moment -
Returned object will have same timezone as
this
-
endOfDay(
) → Moment - Returns end of the day
-
endOfHour(
) → Moment - Returns end of the hour
-
endOfIsoWeek(
) → Moment - Returns start of the ISO week (always Monday)
-
endOfLocalWeek(
[int? weekStart]) → Moment -
Returns end of the week based on
localization.weekStart
. You can override this withweekStart
-
endOfMillisecond(
) → Moment - Returns end of the millisecond
-
endOfMinute(
) → Moment - Returns end of the minute
-
endOfMonth(
) → Moment - Returns end of the month
-
endOfSecond(
) → Moment - Returns end of the second
-
endOfYear(
) → Moment - Returns end of the year