{"id":13549113,"url":"https://github.com/abritinthebay/datejs","last_synced_at":"2025-05-16T01:07:54.183Z","repository":{"id":10208777,"uuid":"12303509","full_name":"abritinthebay/datejs","owner":"abritinthebay","description":"DateJS: Evolved. An updated, bug fixed, and actively maintained continuation of DateJS","archived":false,"fork":false,"pushed_at":"2023-01-09T05:21:50.000Z","size":8965,"stargazers_count":354,"open_issues_count":38,"forks_count":79,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-08T12:32:00.074Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abritinthebay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-22T17:38:45.000Z","updated_at":"2025-02-12T18:40:10.000Z","dependencies_parsed_at":"2022-09-05T22:01:20.612Z","dependency_job_id":null,"html_url":"https://github.com/abritinthebay/datejs","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/abritinthebay%2Fdatejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abritinthebay%2Fdatejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abritinthebay%2Fdatejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abritinthebay%2Fdatejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abritinthebay","download_url":"https://codeload.github.com/abritinthebay/datejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448578,"owners_count":22072764,"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-08-01T12:01:18.397Z","updated_at":"2025-05-16T01:07:49.176Z","avatar_url":"https://github.com/abritinthebay.png","language":"JavaScript","readme":"# DateJS: Evolved\nThe JavaScript Date Library  \n[![Build Status](https://travis-ci.org/abritinthebay/datejs.svg?branch=master)](https://travis-ci.org/abritinthebay/datejs)\n[![NPM version](https://badge.fury.io/js/datejs.svg)](http://badge.fury.io/js/datejs)\n[![Code Climate](https://codeclimate.com/github/abritinthebay/datejs.svg)](https://codeclimate.com/github/abritinthebay/datejs)\n[![Test Coverage](https://codeclimate.com/github/abritinthebay/datejs/badges/coverage.svg)](https://codeclimate.com/github/abritinthebay/datejs)\n\n## What is it?\nDateJS extends the built-in JavaScript Date object to add much better parsing, internationalization support, and all the functions and syntactic sugar you could wish for.\n### Background \nDate JS was started by Geoffrey McGill in 2007, he abandoned it on May 13th 2008; leaving the Google Code repository stagnant and with many bugs unresolved. \n\nThis fork was started improve and maintain DateJS. To keep what is still the most full featured JavaScript Date library alive, maintained, and improved. Currently we're on track towards a 1.0 release - having fixed almost all the existing bugs and added several new features, improved parsing, and many other changes.\n\n### How to Install/Use\nDateJS supports running either your regular web browser as a client library or Node.js.\n\n#### In Node.js\nInstallation is as easy as running:\n\n    npm install datejs\n    \nTo run just `require('datejs')` and DateJS will extend the built in Date object like it does in the browser. \n\n#### For a Browser \nIf you use [Bower](http://bower.io/) to manage your frontend packages then it's also really simple:\n\n    bower install datejs\n\nOtherwise...\n * For production environments include [the production ready minified file from the Build directory](https://github.com/abritinthebay/datejs/blob/master/build/production/date.min.js) on your page. \n * For debugging (eg, in development) include [the unminified and fully commented version](https://github.com/abritinthebay/datejs/blob/master/build/date.js)\n\n#### International Language Versions\nDateJS supports 157 different languages and dialects and ships with US English as the default. It is however easily changed and you can support languages on the fly or just a specific subset.\n\n##### In Node.js\nJust call the following:\n    `Date.i18n.setLanguage([country code])`\nWhere \"country code\" is the appropriate IETF code for the language (e.g. \"de-DE\", or \"es-MX\") and DateJS will import the correct strings for that language. \n\n##### In a Browser\nFor browsers DateJS has langauge support in one of two ways:\n 1. Set `Date.Config.i18n` to the location of [the internationalization files](https://github.com/abritinthebay/datejs/blob/master/build/i18n/) on your server and DateJS will dynamically load the files by dynamic script element insertion. You can support all languages this way.\n 2. Or download the appropriate file from [the Build directory of your choice](https://github.com/abritinthebay/datejs/blob/master/build/). Files are named after the IETF code the load (i.e. `date-es-MX.js` loads Mexican Spanish). This static method will _only_ allow you support of the selected language \u0026 US English.\n\nDateJS +will always support loading US English_ via `Date.i18n.setLanguage(\"en-US\")` no matter what other language is specifically loaded. So you can always support both your localization and the English speaking world.\n\n## File Structure\n* `build/` Output from the Grunt powered build process\n    * Non-minified files with full comments. Suitable for development environments.\n    * `production/` Fully minified (by Google's Closure Compiler) files suitable for production.  \n*  `src` All the source files used to build the final files.\n    * `core/` The main DateJS source files.\n    * `i18n/` Internationalization files. Language specifics (days of the week, regex formats,etc). Organized by IETF language tag (eg - en-US, etc).\n* `specs/` Unit Tests written using [Jasmine](https://jasmine.github.io/). Code coverage is calculated by [BlanketJS](http://blanketjs.org/). \n* `reports/` Code coverage reports in `lcov` and `html` that are generated by [Istanbul](http://gotwarlost.github.io/istanbul/)\n* `tests/` Orginal unit tests for 2008 project. *Deprecated*\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabritinthebay%2Fdatejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabritinthebay%2Fdatejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabritinthebay%2Fdatejs/lists"}