{"id":26874004,"url":"https://github.com/createwheel/tinydateformat2","last_synced_at":"2025-05-07T11:41:35.114Z","repository":{"id":147211249,"uuid":"618726152","full_name":"CreateWheel/tinydateformat2","owner":"CreateWheel","description":"Date formatting tool in less than 1kb","archived":false,"fork":false,"pushed_at":"2024-04-29T10:58:58.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-04T20:46:52.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CreateWheel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-25T06:56:12.000Z","updated_at":"2024-04-29T10:59:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f854858c-c9ef-4d02-9594-9d9f8eba9977","html_url":"https://github.com/CreateWheel/tinydateformat2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateWheel%2Ftinydateformat2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateWheel%2Ftinydateformat2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateWheel%2Ftinydateformat2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateWheel%2Ftinydateformat2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CreateWheel","download_url":"https://codeload.github.com/CreateWheel/tinydateformat2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246447063,"owners_count":20778910,"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":"2025-03-31T09:32:36.618Z","updated_at":"2025-03-31T09:32:37.057Z","avatar_url":"https://github.com/CreateWheel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinydateformat2\n\nDate formatting tool in less than 1kb\n\n## Install\n\n```bash\nnpm install tinydateformat2 --save\n```\n\nBrowsers\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/tinydateformat2/dist/tinydateformat.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nCommonJS\n\n```js\nconst tinydateformat2 = require('tinydateformat2')\n```\n\nES Modules\n\n```js\nimport tinydateformat2 from 'tinydateformat2'\n```\n\n```js\n// default: 'HH:mm:ss' and Date.now()\ntinydateformat2()\n// =\u003e 14:26:04\n\ntinydateformat2('DD/MM/YYYY')\n// =\u003e 25/03/2023\n\ntinydateformat2('YY/M/DD', '2023-1-10')\n// =\u003e 23/1/10\n\ntinydateformat2('YY/MM/DD', '2023-1-10')\n// =\u003e 23/01/10\n```\n\n| Format | Output           | Description                       |\n| ------ | ---------------- | --------------------------------- |\n| YY     | 23               | Two-digit year                    |\n| YYYY   | 2023             | Four-digit year                   |\n| M      | 1-12             | The month, beginning at 1         |\n| MM     | 01-12            | The month, 2-digits               |\n| MMM    | Jan-Dec          | The abbreviated month name        |\n| MMMM   | January-December | The full month name               |\n| D      | 1-31             | The day of the month              |\n| DD     | 01-31            | The day of the month, 2-digits    |\n| d      | 1-7              | The day of the week               |\n| H      | 0-23             | The hour                          |\n| HH     | 00-23            | The hour, 2-digits                |\n| h      | 1-12             | The hour, 12-hour clock           |\n| hh     | 01-12            | The hour, 12-hour clock, 2-digits |\n| m      | 0-59             | The minute                        |\n| mm     | 00-59            | The minute, 2-digits              |\n| s      | 0-59             | The second                        |\n| ss     | 00-59            | The second, 2-digits              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatewheel%2Ftinydateformat2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreatewheel%2Ftinydateformat2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatewheel%2Ftinydateformat2/lists"}