# day-seconds

> Get the number of seconds/milliseconds in a day.

Latest version **1.0.2** (published 2015-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install day-seconds
pnpm add day-seconds
yarn add day-seconds
bun add day-seconds
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-03-02 |
| First published | 2014-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Charlike Mike Reagent |
| Maintainers | tunnckocore, sindresorhus, jonschlinkert |
| Keywords | calendar, count, counts, current, date, dates, datetime, day, days, format, get, js, leap, millisecond, milliseconds, month, months, ms, number, numbers, real, sec, seconds, secs, times, util, utilities, utility, utils, week, weekday, weeks, year, years |

## Links

- npm: https://www.npmjs.com/package/day-seconds
- Repository: https://github.com/datetime/day-seconds
- Issues: https://github.com/datetime/day-seconds/issues
- npm.io page: https://npm.io/package/day-seconds

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-03-02
- 1.0.1 — 2015-03-02
- 1.0.0 — 2015-01-26
- 0.1.0 — 2014-06-27

## README

## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url]

> Get the number of seconds/milliseconds in a day.

## Install
```
npm i --save day-seconds
npm test
```


## API
> For more use-cases see the [tests](./test.js)

### [daySeconds](./index.js#L35)
> Get the number of seconds/milliseconds in a day.

- `[bool]` **{Boolean}** when `true`, returns seconds, otherwise milliseconds
- `return` **{Number}**

**Example:**

```js
var daySeconds = require('day-seconds');

daySeconds(false);
//=> 86400000

daySeconds();
//=> 86400000

daySeconds('str');
//=> 86400000

daySeconds([1,2,3]);
//=> 86400000

daySeconds(/regex/gm);
//=> 86400000

daySeconds({});
//=> 86400000

daySeconds(true);
//=> 86400
```


## Author
**Charlike Mike Reagent**
+ [gratipay/tunnckoCore][author-gratipay]
+ [twitter/tunnckoCore][author-twitter]
+ [github/tunnckoCore][author-github]
+ [npmjs/tunnckoCore][author-npmjs]
+ [more ...][contrib-more]


## License [![MIT license][license-img]][license-url]
Copyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  
Released under the [`MIT`][license-url] license.


[npmjs-url]: http://npm.im/day-seconds
[npmjs-img]: https://img.shields.io/npm/v/day-seconds.svg?style=flat&label=day-seconds

[coveralls-url]: https://coveralls.io/r/datetime/day-seconds?branch=master
[coveralls-img]: https://img.shields.io/coveralls/datetime/day-seconds.svg?style=flat

[license-url]: https://github.com/datetime/day-seconds/blob/master/license.md
[license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat

[travis-url]: https://travis-ci.org/datetime/day-seconds
[travis-img]: https://img.shields.io/travis/datetime/day-seconds.svg?style=flat

[daviddm-url]: https://david-dm.org/datetime/day-seconds
[daviddm-img]: https://img.shields.io/david/datetime/day-seconds.svg?style=flat

[author-gratipay]: https://gratipay.com/tunnckoCore
[author-twitter]: https://twitter.com/tunnckoCore
[author-github]: https://github.com/tunnckoCore
[author-npmjs]: https://npmjs.org/~tunnckocore

[contrib-more]: http://j.mp/1stW47C
[contrib-graf]: https://github.com/datetime/day-seconds/graphs/contributors

***

_Powered and automated by [kdf](https://github.com/tunnckoCore), March 02, 2015_

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