Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-timezone

haack6MIT0.0.2

checks if a timestamp contains a timezone

timestamp, timezone, time, date

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