{"id":17685741,"url":"https://github.com/neved4/gendate","last_synced_at":"2026-02-13T20:35:41.309Z","repository":{"id":241395718,"uuid":"805839038","full_name":"Neved4/gendate","owner":"Neved4","description":"⌚️ Generate dates!","archived":false,"fork":false,"pushed_at":"2025-01-13T14:59:37.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:03:55.798Z","etag":null,"topics":["cli","command-line","date","iso8601","terminal","time-zones"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Neved4.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":"2024-05-25T15:54:24.000Z","updated_at":"2025-01-13T14:59:41.000Z","dependencies_parsed_at":"2024-05-28T05:39:45.212Z","dependency_job_id":"c081dc22-c8b6-494b-97aa-71f59b2ee734","html_url":"https://github.com/Neved4/gendate","commit_stats":null,"previous_names":["neved4/gendate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Neved4/gendate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neved4%2Fgendate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neved4%2Fgendate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neved4%2Fgendate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neved4%2Fgendate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neved4","download_url":"https://codeload.github.com/Neved4/gendate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neved4%2Fgendate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29417393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","command-line","date","iso8601","terminal","time-zones"],"created_at":"2024-10-24T10:28:54.744Z","updated_at":"2026-02-13T20:35:41.294Z","avatar_url":"https://github.com/Neved4.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `gendate` - Generate dates! ⌚️\n\nList dates from *January 1, 1970* ([UNIX Epoch]) to 3000 AD, including leap years.\n\nDates are printed using [ISO 8601] format.\n\n## Motivation\n\nThe original shell script for generating days took several minutes,\nprompting a rewrite in C.  \nAdditional implementations were incorporated to explore the problem across\nother languages.\n\n## Getting Started\n\n### Building\n\n`cd` to `src/variant`, then compile with the command from table below:\n\n\u003cdiv align=\"center\"\u003e\n\n| Version         | Run with                        | Runtime (≈)  |\n| :-------------- | :------------------------------ | :----------- |\n| Rust (`stdlib`) | `cargo run -r`                  | `36.6 ms`    |\n| Rust (`chrono`) | `cargo run -r`                  | `45.5 ms`    |\n| **C**           | **`make gendate \u0026\u0026 ./gendate`** | **`156 ms`** |\n| Go              | `go run gendate.go`             | `234 ms`     |\n| Tcl             | `./gendate.tcl`                 | `501 ms`     |\n| Haskell         | `ghc gendate.hs \u0026\u0026 ./gendate`   | `715 ms`     |\n| Python          | `./gendate.py`                  | `1.3 s`      |\n| F#              | `dotnet run`                    | `1.4 s`      |\n| C#              | `dotnet run`                    | `1.5 s`      |\n| Scheme          | `csi gendate.scm`               | `1.5 s`      |\n| Perl            | `./gendate.pl`                  | `2.3 s`      |\n| Lua             | `./gendate.lua`                 | `3.3 s`      |\n| Shell           | `./gendate.sh`                  | `10.5 m`     |\n\n###### All programs were measured with [`hyperfine`].\n\n\u003c/div\u003e\n\n### Output\n\nEach implementation produces output equivalent to:\n```console\n$ ./gendate\n1970-01-01\n1970-01-02\n1970-01-03\n...\n2999-12-30\n2999-12-31\n3000-01-01\n```\n\n## Benchmarks\n\n\u003cdiv align=\"center\"\u003e\n\n| Variant |      Mean [ms] | Min [ms] | Max [ms] |     Relative |\n| :------ | -------------: | -------: | -------: | -----------: |\n| C       |    143.7 ± 4.4 |    140.5 |    168.9 |         1.00 |\n| Rust    |   228.3 ± 17.4 |    209.6 |    315.4 |  1.59 ± 0.13 |\n| Go      |   242.8 ± 12.2 |    225.1 |    274.1 |  1.69 ± 0.10 |\n| Haskell |   659.5 ± 22.9 |    609.7 |    721.7 |  4.59 ± 0.21 |\n| Scheme  | 1684.5 ± 117.4 |   1504.4 |   2237.5 | 11.72 ± 0.89 |\n\n###### All programs were measured with [`hyperfine`].\n\n\u003c/div\u003e\n\n## License\n\nThis repository is licensed under the terms of the [MIT License].\n   \nSee the [LICENSE](LICENSE) file for details.\n\n[ISO 8601]:    https://en.wikipedia.org/wiki/ISO_8601\n[UNIX Epoch]:  https://en.wikipedia.org/wiki/Unix_time\n[MIT License]: https://opensource.org/license/mit/\n[`hyperfine`]: https://github.com/sharkdp/hyperfine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneved4%2Fgendate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneved4%2Fgendate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneved4%2Fgendate/lists"}