has-timezone
Version:
checks if a timestamp contains a timezone
19 lines (16 loc) • 406 B
Markdown
Check whether a string ends with timezone. Long live the micro-package.
```
$ npm install --save has-timezone
```
```javascript
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
```
MIT