{"id":32251839,"url":"https://github.com/vria/date-republicain","last_synced_at":"2026-02-20T20:02:24.182Z","repository":{"id":40768160,"uuid":"64165725","full_name":"vria/date-republicain","owner":"vria","description":"Gregorian to republicain date converter","archived":false,"fork":false,"pushed_at":"2023-01-07T18:14:16.000Z","size":2169,"stargazers_count":5,"open_issues_count":18,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-27T01:26:05.254Z","etag":null,"topics":["france","fun","javascript","javascript-library"],"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/vria.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":"2016-07-25T20:28:02.000Z","updated_at":"2025-04-12T12:46:23.000Z","dependencies_parsed_at":"2023-02-07T19:55:11.726Z","dependency_job_id":null,"html_url":"https://github.com/vria/date-republicain","commit_stats":null,"previous_names":["riabchenkovlad/date-republicain"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vria/date-republicain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vria%2Fdate-republicain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vria%2Fdate-republicain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vria%2Fdate-republicain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vria%2Fdate-republicain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vria","download_url":"https://codeload.github.com/vria/date-republicain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vria%2Fdate-republicain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29662576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["france","fun","javascript","javascript-library"],"created_at":"2025-10-22T18:11:09.053Z","updated_at":"2026-02-20T20:02:24.177Z","avatar_url":"https://github.com/vria.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# date-republicain\n\n[![Build Status](https://travis-ci.org/vria/date-republicain.svg?branch=master)](https://travis-ci.org/vria/date-republicain)\n[![codecov](https://codecov.io/gh/vria/date-republicain/branch/master/graph/badge.svg)](https://codecov.io/gh/vria/date-republicain)\n\nThis library is a gregorian to republicain date converter.\n\nThe French Republican Calendar (🇫🇷 Calendrier Républicain Français) or French Revolutionary Calendar\n(🇫🇷: Calendrier Révolutionnaire Français), was a calendar created during the French Revolution and used by French\ngovernments for about 12 years from 1793 to 1805. Read more about Republican Calendar in the\n[dedicated article](https://en.wikipedia.org/wiki/French_Republican_Calendar).\n\nThis converter interpolates the Revolutionary Calendar after it was abolished in 1805 until nowadays and to future.\n\n## Install\n\n```\nnpm install date-republicain\n```\n\n## Use\n\nThe complied script [dist/date-republicain.js](dist/date-republicain.js) can be used in different environments.\n\nIt provides the function `getRepublicainDate(gregorianDate)` that returns corresponding republicain date.\n\n`gregorianDate` argument is whatever [moment.js](http://momentjs.com/docs/) can parse.\n\nReturned republicain date is an object with these methods:\n- `day(): [number]`  returns day number from 1 to 30. For \"Jours complémentaires\" it returns a value from 1 to 5 \n  (from 1 to 6 for aleap year).\n- `dayName(): [string]` each day in Republican Calendar is given a name: \"Raisin\", \"Safran\", \"Châtaigne\", ...,\n  \"Jour des récompenses\", \"Jour de la révolution\".\n- `dayLink(): [string]` a Wikipedia link to corresponding `dayName()`.\n- `month(): [number]` returns a number from 1 to 13. \"1\" corresponds to \"Vendémiaire\", \"2\" corresponds to \"Brumaire\", \n  ..., \"12\" corresponds to \"Fructidor\", \"13\" corresponds to \"Jours complémentaires\".\n- `monthName(): [string]` returns a month name (\"Vendémiaire\", \"Brumaire\", ..., \"Jours complémentaires\").\n- `monthLink(): [string]` a Wikipedia link to corresponding `monthName()`.\n- `year()[number]` returns a year of the Republican Era.\n- `romainYear(): [string]` a year represented by Roman numerals.\n\n#### Global function in browser\n\nDon't forget to include `moment.js` before `date-republicain.js`.\n\n```\n\u003cscript src=\"path_to/moment.js\"\u003e\n\u003cscript src=\"path_to/date-republicain.js\"\u003e\n\u003cscript\u003e\n    var republicainDate = getRepublicainDate(\"1792-09-22\");\n\u003c/script\u003e\n```\n\n#### Node.js\n\nNodejs support will be added later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvria%2Fdate-republicain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvria%2Fdate-republicain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvria%2Fdate-republicain/lists"}