has-timezone
v0.0.2
Published
checks if a timestamp contains a timezone
Downloads
3
Readme
has-timezone
Check whether a string ends with timezone. Long live the micro-package.
Installation
$ npm install --save has-timezone
Usage
var hasTimezone = require('has-timezone');
hasTimezone('asdf'); // false
hasTimezone('2010-01-01T00:00:00'); // false
hasTimezone('2010-01-01T00:00:00+00:00'); // true
hasTimezone('2010-01-01T00:00:00-0800'); // true
License
MIT