UNPKG
has-timezone
Version:
latest (0.0.2)
0.0.2
0.0.1
checks if a timestamp contains a timezone
github.com/haack/has-timezone
haack/has-timezone
has-timezone
/
index.js
5 lines
(4 loc)
•
103 B
JavaScript
View Raw
1
2
3
4
5
module.exports = hasTimezone;
function
hasTimezone(
date
) {
return
/.*[-\+]\d\d:?\d\d$/.test(
date
); }