{"id":20572832,"url":"https://github.com/datetime/day-seconds","last_synced_at":"2025-04-14T17:23:01.921Z","repository":{"id":18161332,"uuid":"21260375","full_name":"datetime/day-seconds","owner":"datetime","description":"Get the number of seconds/milliseconds in a day.","archived":false,"fork":false,"pushed_at":"2017-05-24T18:58:55.000Z","size":13,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T06:03:51.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datetime.png","metadata":{"files":{"readme":"readme.md","changelog":"history.md","contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-27T01:33:16.000Z","updated_at":"2019-09-25T10:21:24.000Z","dependencies_parsed_at":"2022-08-28T05:21:44.283Z","dependency_job_id":null,"html_url":"https://github.com/datetime/day-seconds","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fday-seconds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fday-seconds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fday-seconds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fday-seconds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/day-seconds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819390,"owners_count":21166472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T05:24:11.061Z","updated_at":"2025-04-14T17:23:01.876Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url]\n\n\u003e Get the number of seconds/milliseconds in a day.\n\n## Install\n```\nnpm i --save day-seconds\nnpm test\n```\n\n\n## API\n\u003e For more use-cases see the [tests](./test.js)\n\n### [daySeconds](./index.js#L35)\n\u003e Get the number of seconds/milliseconds in a day.\n\n- `[bool]` **{Boolean}** when `true`, returns seconds, otherwise milliseconds\n- `return` **{Number}**\n\n**Example:**\n\n```js\nvar daySeconds = require('day-seconds');\n\ndaySeconds(false);\n//=\u003e 86400000\n\ndaySeconds();\n//=\u003e 86400000\n\ndaySeconds('str');\n//=\u003e 86400000\n\ndaySeconds([1,2,3]);\n//=\u003e 86400000\n\ndaySeconds(/regex/gm);\n//=\u003e 86400000\n\ndaySeconds({});\n//=\u003e 86400000\n\ndaySeconds(true);\n//=\u003e 86400\n```\n\n\n## Author\n**Charlike Mike Reagent**\n+ [gratipay/tunnckoCore][author-gratipay]\n+ [twitter/tunnckoCore][author-twitter]\n+ [github/tunnckoCore][author-github]\n+ [npmjs/tunnckoCore][author-npmjs]\n+ [more ...][contrib-more]\n\n\n## License [![MIT license][license-img]][license-url]\nCopyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  \nReleased under the [`MIT`][license-url] license.\n\n\n[npmjs-url]: http://npm.im/day-seconds\n[npmjs-img]: https://img.shields.io/npm/v/day-seconds.svg?style=flat\u0026label=day-seconds\n\n[coveralls-url]: https://coveralls.io/r/datetime/day-seconds?branch=master\n[coveralls-img]: https://img.shields.io/coveralls/datetime/day-seconds.svg?style=flat\n\n[license-url]: https://github.com/datetime/day-seconds/blob/master/license.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n\n[travis-url]: https://travis-ci.org/datetime/day-seconds\n[travis-img]: https://img.shields.io/travis/datetime/day-seconds.svg?style=flat\n\n[daviddm-url]: https://david-dm.org/datetime/day-seconds\n[daviddm-img]: https://img.shields.io/david/datetime/day-seconds.svg?style=flat\n\n[author-gratipay]: https://gratipay.com/tunnckoCore\n[author-twitter]: https://twitter.com/tunnckoCore\n[author-github]: https://github.com/tunnckoCore\n[author-npmjs]: https://npmjs.org/~tunnckocore\n\n[contrib-more]: http://j.mp/1stW47C\n[contrib-graf]: https://github.com/datetime/day-seconds/graphs/contributors\n\n***\n\n_Powered and automated by [kdf](https://github.com/tunnckoCore), March 02, 2015_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fday-seconds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fday-seconds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fday-seconds/lists"}