Skip to content
addUnix: Add a temporal amount to a Unix epoch value and return the resulting epoch.
diffUnix: Return the difference between two Unix timestamps measured in the given unit.
diffUnixAsDuration: Return the difference between two Unix timestamps as an ISO 8601 duration string, bridging to the duration namespace (see parseDuration, normalizeDuration).
endOfQuarterForUnix: Return the end of the quarter for a Unix timestamp.
endOfUnix: Return the end of the specified unit for a Unix timestamp.
isBetweenUnix: Return true when the Unix timestamp is between start and end (inclusive by default).
maxUnix: Return the latest (maximum) of the given Unix timestamp values.
minUnix: Return the earliest (minimum) of the given Unix timestamp values.
roundUnix: Round a Unix timestamp to the specified unit.
setUnix: Return a Unix epoch value with the given fields set on value, interpreted in timeZone.
sortUnix: Sort an array of Unix timestamp values in ascending or descending order.
startOfQuarterForUnix: Return the start of the quarter for a Unix timestamp.
startOfUnix: Return the start of the specified unit for a Unix timestamp.
subtractUnix: Subtract a temporal amount from a Unix epoch value and return the resulting epoch.
areUnixEqual: Return whether value1 and value2 represent the same instant.
areUnixEqualBy: Compare two Unix epoch values for equality at a given unit.
isAfterUnix: Return whether value1 represents an instant strictly after value2.
isBeforeUnix: Return whether value1 represents an instant strictly before value2.
formatCalendarUnix: Format a unix epoch value as a relative day label plus time-of-day, e.g. “Tomorrow at 2:30 PM” — the unix counterpart of formatCalendar.
formatRelativeUnix: Format the relative time between a unix epoch value and a reference instant.
formatUnix: Format a unix epoch value (string or number) as a localized date/time string.
getUnixDay: Return the current day from the Unix timestamp in UTC as a zero-padded string.
getUnixHour: Return the current hour from the Unix timestamp in UTC as a zero-padded string.
getUnixMicrosecond: Return the current microsecond from the Unix timestamp in UTC as a zero-padded string.
getUnixMillisecond: Return the current millisecond from the Unix timestamp in UTC as a zero-padded string.
getUnixMinute: Return the current minute from the Unix timestamp in UTC as a zero-padded string.
getUnixMonth: Return the current month from the Unix timestamp in UTC as a zero-padded string.
getUnixNanosecond: Return the current nanosecond from the Unix timestamp in UTC as a zero-padded string.
getUnixNow: Return the current Unix timestamp in either seconds or milliseconds.
getUnixNowUnit: Return the requested unit value from the current Unix timestamp in UTC.
getUnixSecond: Return the current second from the Unix timestamp in UTC as a zero-padded string.
getUnixYear: Return the current year from the Unix timestamp in UTC as a zero-padded string.
intervalAbutsUnix: Return true when two half-open Unix intervals [start, end) are exactly adjacent — one ends where the other starts, so they share no value and leave no gap (Allen’s “meets”, either order).
intervalContainsUnix: Return true when pointOrStart falls within the half-open interval [intervalStart, intervalEnd) (3-arg), or when the inner interval [innerStart, innerEnd) lies within the outer interval [intervalStart, intervalEnd) (4-arg).
intervalCountUnix: Count how many unit boundaries a Unix epoch interval crosses.
intervalDifferenceUnix: Return the portion(s) of the half-open interval A [aStart, aEnd) not covered by the half-open interval B [bStart, bEnd).
intervalDivideEquallyUnix: Split a Unix epoch interval into n equal-length sub-intervals.
intervalEngulfsUnix: Return true when the half-open interval B [bStart, bEnd) lies within the half-open interval A [aStart, aEnd) — every instant of B falls within A.
intervalFromDurationUnix: Construct a Unix epoch interval from a single point plus an ISO 8601 duration, anchored at either end.
intervalIntersectionUnix: Return the overlapping span of two half-open Unix epoch intervals [start, end), or null when they do not overlap.
intervalLengthUnix: Return the exact length of a Unix epoch interval in unit, as a real (possibly fractional) number.
intervalOverlappingDaysUnix: Return how many distinct calendar dates two Unix epoch intervals share, in a given time zone.
intervalsOverlapUnix: Return true when the half-open intervals [aStart, aEnd) and [bStart, bEnd) share at least one instant.
intervalSplitAtUnix: Split a Unix epoch interval at arbitrary points, producing consecutive sub-intervals.
intervalUnionUnix: Return the combined span of two half-open Unix epoch intervals [start, end), or null when their union is not one non-empty span.
intervalXorAllUnix: Return the symmetric difference across a list of Unix epoch intervals — the set of epoch values covered by an odd number of the input intervals.
intervalXorUnix: Return the symmetric difference of two half-open Unix intervals [start, end) — the values covered by exactly one interval.
isValidUnixInterval: Return true if start and end form a valid Unix interval — both safe-integer epochs and start <= end.
mergeIntervalsUnix: Collapse a list of Unix epoch intervals into the minimum set of non-overlapping intervals.
splitIntervalByUnitUnix: Split a Unix epoch interval into sub-intervals of amount × unit.
isValidUnixMilliseconds: Return true when timestamp is a Unix milliseconds value every unix/ function accepts.
isValidUnixRange: Return true if value1 and value2 form a valid Unix range — both safe-integer epochs and value1 < value2 (or <= with allowEqual).
isValidUnixSeconds: Return true when timestamp is a Unix seconds value every unix/ function accepts.
isValidUnixUnit: Return true when unit is a valid UnixUnit.