MCPcopy
hub / github.com/date-fns/date-fns / oneDayLater

Function oneDayLater

pkgs/core/src/_lib/test/tzOffsetTransitions.ts:59–63  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

57}
58
59function oneDayLater(date: Date): Date {
60 const d = new Date(date);
61 d.setDate(d.getDate() + 1);
62 return firstTickInLocalDay(d);
63}
64
65function previousTickTimezoneOffset(date: Date): number {
66 const d = new Date(date.getTime() - 1);

Callers 1

getTzOffsetTransitionsFunction · 0.85

Calls 1

firstTickInLocalDayFunction · 0.85

Tested by

no test coverage detected