UNPKG

@storm-stack/date-time

Version:

This package includes a DateTime class, various utility functions for working with dates and times, and a number of formatting options.

12 lines (11 loc) 419 B
import { StormDateTime } from "../storm-date-time"; /** * Type-check to determine if `obj` is a `DateTime` object * * `isDateTime` returns true if the object passed to it has a `_symbol` property that is equal to * `DATE_TIME_SYMBOL` * * @param obj - the object to check * @returns The function isDateTime is returning a boolean value. */ export declare function isDateTime(obj: unknown): obj is StormDateTime;