StartOfUnitMoment extension
- on
Methods
-
startOf(
DurationUnit unit) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returned object will have same timezone asthis
-
startOfDay(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the day -
startOfHour(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the hour -
startOfIsoWeek(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the ISO week (always Monday) -
startOfLocalWeek(
[int? weekStart]) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the week based onlocalization.weekStart
. You can override this withweekStart
-
startOfMillisecond(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the millisecond -
startOfMinute(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the minute -
startOfMonth(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the month -
startOfSecond(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the second -
startOfYear(
) → Moment -
Available on Moment, provided by the StartOfUnitMoment extension
Returns start of the year