UNPKG

has-timezone

Version:

checks if a timestamp contains a timezone

5 lines (4 loc) 103 B
module.exports = hasTimezone; function hasTimezone(date) { return /.*[-\+]\d\d:?\d\d$/.test(date); }