# utcstring

> utc date helpers

Latest version **0.1.0** (published 2013-11-05) · 0 weekly downloads

## Install

```sh
npm install utcstring
pnpm add utcstring
yarn add utcstring
bun add utcstring
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-11-05 |
| First published | 2013-11-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sean McArthur |
| Maintainers | seanmonstar |
| Keywords | date, match, time, utc |

## Links

- npm: https://www.npmjs.com/package/utcstring
- Repository: https://github.com/seanmonstar/utcstring
- Issues: https://github.com/seanmonstar/utcstring/issues
- npm.io page: https://npm.io/package/utcstring

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2013-11-05

## README

# utcstring

[![Build Status](https://travis-ci.org/seanmonstar/utcstring.png?branch=master)](https://travis-ci.org/seanmonstar/utcstring)
[![NPM version](https://badge.fury.io/js/utcstring.png)](http://badge.fury.io/js/utcstring)

UTC date format utilities.

## Usage

```js
var utc = require('utcstring');

utc() // now in UTC string format
utc(new Date()) // date in UTC string; same as (new Date).toUTCString();

utc.is('Thu, 30 Oct 2013 11:15:21 GMT') // returns true
utc.is('Thu, 30 Oct 2013') // returns false

utc.has('Today is Thu, 30 Oct 2013 11:15:21 GMT, hurray!') // true

utc.match('Today is Thu, 30 Oct 2013 11:15:21 GMT, hurray!') // ['Thu, 30 Oct 2013 11:15:21 GMT']

// essentially utc.match()[0]
utc.get('Today is Thu, 30 Oct 2013 11:15:21 GMT, hurray!') // 'Thu, 30 Oct 2013 11:15:21 GMT'

// checks utc.is(str) before parsing as Date
utc.from('Thu, 30 Oct 2013 11:15:21 GMT') // Date instance
utc.from('2013-10-30') // null
```

## License

MPLv2.0

---
_Source: https://npm.io/package/utcstring · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
