{"id":17048699,"url":"https://github.com/neocotic/date-ext","last_synced_at":"2025-04-12T16:12:50.187Z","repository":{"id":1983648,"uuid":"2915495","full_name":"neocotic/date-ext","owner":"neocotic","description":"Library for extending JavaScript dates","archived":false,"fork":false,"pushed_at":"2017-09-13T15:57:19.000Z","size":162,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T19:12:58.168Z","etag":null,"topics":["browser","date","extension","javascript","nodejs","project"],"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/neocotic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-05T09:31:51.000Z","updated_at":"2024-07-25T05:24:20.000Z","dependencies_parsed_at":"2022-08-30T14:51:36.917Z","dependency_job_id":null,"html_url":"https://github.com/neocotic/date-ext","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/neocotic%2Fdate-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fdate-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fdate-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fdate-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neocotic","download_url":"https://codeload.github.com/neocotic/date-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594137,"owners_count":21130313,"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":["browser","date","extension","javascript","nodejs","project"],"created_at":"2024-10-14T09:52:48.197Z","updated_at":"2025-04-12T16:12:50.166Z","avatar_url":"https://github.com/neocotic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"         888          888                                     888\n         888          888                                     888\n         888          888                                     888\n     .d88888  8888b.  888888 .d88b.          .d88b.  888  888 888888\n    d88\" 888     \"88b 888   d8P  Y8b        d8P  Y8b `Y8bd8P' 888\n    888  888 .d888888 888   88888888 888888 88888888   X88K   888\n    Y88b 888 888  888 Y88b. Y8b.            Y8b.     .d8\"\"8b. Y88b.\n     \"Y88888 \"Y888888  \"Y888 \"Y8888          \"Y8888  888  888  \"Y888\n\n[date-ext](https://github.com/neocotic/date-ext) is a JavaScript library for extending `Date` objects with useful\neveryday methods.\n\n[![Demo](https://img.shields.io/badge/demo-live-brightgreen.svg?style=flat-square)](https://codepen.io/neocotic/full/oGNOOM/)\n[![Build Status](https://img.shields.io/travis/neocotic/date-ext/develop.svg?style=flat-square)](https://travis-ci.org/neocotic/date-ext)\n[![Dev Dependency Status](https://img.shields.io/david/dev/neocotic/date-ext.svg?style=flat-square)](https://david-dm.org/neocotic/date-ext?type=dev)\n[![License](https://img.shields.io/npm/l/date-ext.svg?style=flat-square)](https://github.com/neocotic/date-ext/blob/master/LICENSE.md)\n[![Release](https://img.shields.io/npm/v/date-ext.svg?style=flat-square)](https://www.npmjs.com/package/date-ext)\n\n* [Install](#install)\n* [API](#api)\n* [Bugs](#bugs)\n* [Contributors](#contributors)\n* [License](#license)\n\n## Install\n\nInstall using the package manager for your desired environment(s):\n\n``` bash\n$ npm install --save date-ext\n# OR:\n$ bower install --save date-ext\n```\n\nIf you want to simply download the file to be used in the browser you can find them below:\n\n* [Development Version](https://cdn.rawgit.com/neocotic/date-ext/master/lib/date-ext.js) (21kb)\n* [Production Version](https://cdn.rawgit.com/neocotic/date-ext/master/dist/date-ext.min.js) (5.4kb - [Source Map](https://cdn.rawgit.com/neocotic/date-ext/master/dist/date-ext.min.map))\n\n## API\n\n### Formatting\n\nFormatting is now extremely simple and uses the same parameters as\n[PHP's date function](http://php.net/manual/en/function.date.php) as well as the escape sequence (backslash).\n\n``` javascript\nDate.format(date, formatStr)\nnew Date().format(formatStr)\n```\n\n### Scheduling\n\nWant to schedule a function to be called at a certain time? Well, it couldn't be any easier.\n\n``` javascript\nDate.schedule(date, callback[, context])\nnew Date().schedule(callback[, context])\n```\n\nIf the date is *now* or in the past it will simply be called immediately. Also, if you change your mind you can just\nprevent it from being called.\n\n``` javascript\nDate.unschedule(scheduleId)\nnew Date().unschedule(scheduleId)\n```\n\nThe `scheduleId` is returned by the call to `schedule` and will be unique for every call. However, This will be\n`undefined` in cases where the function was called immediately.\n\n### Miscellaneous\n\nThe library also comes packed with a few more simple - yet extremely useful - everyday methods.\n\n``` javascript\nnew Date().addDays(days)\nnew Date().addHours(hours)\nnew Date().addMilliseconds(milliseconds)\nnew Date().addMinutes(minutes)\nnew Date().addMonths(months)\nnew Date().addSeconds(seconds)\nnew Date().addYears(years)\nnew Date().clear()\nnew Date().clearDate()\nnew Date().clearTime()\nnew Date().getDayOfYear()\nnew Date().getDaysInMonth()\nnew Date().getTimezone()\nnew Date().getWeekOfYear()\nnew Date().getYearOfWeek()\nnew Date().isDaylightSavingTime()\nnew Date().isLeapYear()\n```\n\n## Bugs\n\nIf you have any problems with date-ext or would like to see changes currently in development you can do so\n[here](https://github.com/neocotic/date-ext/issues).\n\n## Contributors\n\nIf you want to contribute, you're a legend! Information on how you can do so can be found in\n[CONTRIBUTING.md](https://github.com/neocotic/date-ext/blob/master/CONTRIBUTING.md). We want your suggestions and pull\nrequests!\n\nA list of date-ext contributors can be found in\n[AUTHORS.md](https://github.com/neocotic/date-ext/blob/master/AUTHORS.md).\n\n## License\n\nCopyright © 2017 Alasdair Mercer\n\nSee [LICENSE.md](https://github.com/neocotic/date-ext/blob/master/LICENSE.md) for more information on our MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocotic%2Fdate-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneocotic%2Fdate-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocotic%2Fdate-ext/lists"}