{"id":16294003,"url":"https://github.com/axetroy/rfcdate","last_synced_at":"2026-02-21T06:32:38.011Z","repository":{"id":57355318,"uuid":"116338845","full_name":"axetroy/RFCDate","owner":"axetroy","description":"Standard date formattor and parser.","archived":false,"fork":false,"pushed_at":"2022-07-07T17:19:20.000Z","size":176,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T14:22:12.250Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-05T03:53:05.000Z","updated_at":"2023-04-12T08:05:03.000Z","dependencies_parsed_at":"2022-09-26T16:31:49.186Z","dependency_job_id":null,"html_url":"https://github.com/axetroy/RFCDate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2FRFCDate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2FRFCDate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2FRFCDate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2FRFCDate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/RFCDate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244551745,"owners_count":20470908,"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-10-10T20:13:48.038Z","updated_at":"2026-02-21T06:32:37.978Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","readme":"## RFC Date\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/RFCDate.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/axetroy/RFCDate.svg?branch=master)](https://travis-ci.org/axetroy/RFCDate)\n[![Coverage Status](https://coveralls.io/repos/github/axetroy/RFCDate/badge.svg?branch=master)](https://coveralls.io/github/axetroy/RFCDate?branch=master)\n[![Dependency](https://david-dm.org/axetroy/rfcdate.svg)](https://david-dm.org/axetroy/rfcdate)\n![License](https://img.shields.io/badge/license-Apache-green.svg)\n[![Prettier](https://img.shields.io/badge/Code%20Style-Prettier-green.svg)](https://github.com/prettier/prettier)\n![Node](https://img.shields.io/badge/node-%3E=6.0-blue.svg?style=flat-square)\n[![npm version](https://badge.fury.io/js/rfcdate.svg)](https://badge.fury.io/js/rfcdate)\n![Size](https://github-size-badge.herokuapp.com/axetroy/RFCDate.svg)\n\nStandard date formattor and parser.\n\n## Usage\n\n```javascript\nconst { Now, Parse, Time } = require('rfcdate');\n\n// format\nconst now = new Time(new Date());\nnow.format(Time.ANSIC);             // Fri Jan 5  14:22:22 2018\nnow.format(Time.UnixDate);          // Fri Jan  5 14:22:22 UTC 2018\nnow.format(Time.RubyDate);          // Fri Jan 5 14:22:22 +0800 2018\nnow.format(Time.RFC822);            // Fri Jan 5 14:22:22 +0800 2018 UTC\nnow.format(Time.RFC822Z);           // 5 Jan 18 14:22 +0800\nnow.format(Time.RFC850);            // Friday, 05-Jan-18 14:22:22 UTC\nnow.format(Time.RFC1123);           // Fri, 05 Jan 18 14:22:22 UTC\nnow.format(Time.RFC3339);           // 2018-01-05T14:22:39+08:00\nnow.format(Time.RFC3339Nano);       // 2018-01-05T14:22:39.392000+08:00\nnow.format(Time.Kitchen);           // 2:22PM\nnow.format(Time.Stamp);             // Jan  5 14:22:22\nnow.format(Time.StampMilli);        // Jan  5 14:22:22.392\nnow.format(Time.StampMicro);        // Jan  5 14:22:22.392000\nnow.format(Time.StampNano);         // Jan  5 14:22:22.392000000\nnow.format(Time.ISO8601);           // 2018-01-05T14:22:22 +0800\nnow.format(Time.ISO8601Z);          // 2018-01-05T06:22:22Z\nnow.format(Time.ISODate);           // 2018-01-05\nnow.format(Time.ISOOrigin);         // 2018-5\nnow.format(Time.ISOTime);           // 14:22:22\nnow.format(Time.ISOWeek);           // 2018-W01\nnow.format(Time.ISOWeekDay);        // 2018-W01-5\nnow.format(Time.SlashedDate);       // 01/05/2018\nnow.format(Time.StrfTimeClock);     // 14:22\nnow.format(Time.StrfTimeISODate);   // 2018-01-05\nnow.format(Time.StrfTimeKitchen);   // 14:22:39 PM\nnow.format(Time.StrfTimeShortdate); // 5-Jan-2018\nnow.format(Time.UTC);               // Fri, 05 Jan 2018 14:22:22 UTC\n\n// parse\nParse(\"2018-01-05T14:22.392000:39+08:00\", Time.RFC3339Nano)\n```\n\n## Contributing\n\n[Contributing Guide](https://github.com/axetroy/RFCDate/blob/master/CONTRIBUTING.md)\n\n如果你觉得项目不错，不要吝啬你的 star.\n\n长期造轮子，欢迎 follow.\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/9758711?v=3\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003eAxetroy\u003c/sub\u003e](http://axetroy.github.io)\u003cbr /\u003e[💻](https://github.com/axetroy/RFCDate/commits?author=axetroy) [🐛](https://github.com/axetroy/RFCDate/issues?q=author%3Aaxetroy) 🎨 |\n| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |\n\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Faxetroy%2FRFCDate.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Faxetroy%2FRFCDate?ref=badge_large)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Frfcdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Frfcdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Frfcdate/lists"}