UNPKG

iso-datestring-validator

Version:

The goal of the package is to provide lightweight tools for validating strings denotings dates and time. It includes ISO 8601 datestring validation, simple YYYY-MM-DD date validation and time validation in hh:mm:ss.fff format. See details in readme.

9 lines (8 loc) 302 B
/** * * @param offset * @param isPositiveOffset the flag, which determines if the zone has positive or negative offset * 00:00 is considered a positive zone * @param s separator */ export declare function isValidZoneOffset(offset: string, isPositiveOffset: boolean, s?: string): boolean;