Source

dateTime/isISOTimestamp.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var REGEX = /^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[0-1])T(?:[01]\d|2[0-3])(?::[0-5]\d(?::[0-5]\d(?:\.\d+)?)?)?Z?$/i;
/**
 * Validate if it is ISO timestamp
 * @category dateTime
 * @module isISOTimestamp
 */
var isISOTimestamp = function (value) { return REGEX.test(value); };
exports.default = isISOTimestamp;