{"id":16949480,"url":"https://github.com/tailhook/humantime","last_synced_at":"2025-03-10T01:00:01.961Z","repository":{"id":41094928,"uuid":"59320323","full_name":"tailhook/humantime","owner":"tailhook","description":"A parser and formatter for std::time::{SystemTime, Duration}","archived":false,"fork":false,"pushed_at":"2023-10-06T17:19:33.000Z","size":694,"stargazers_count":308,"open_issues_count":22,"forks_count":38,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-08T05:28:59.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/tailhook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2016-05-20T19:17:59.000Z","updated_at":"2025-03-04T07:07:28.000Z","dependencies_parsed_at":"2024-06-18T15:45:12.803Z","dependency_job_id":null,"html_url":"https://github.com/tailhook/humantime","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fhumantime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fhumantime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fhumantime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fhumantime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailhook","download_url":"https://codeload.github.com/tailhook/humantime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242772290,"owners_count":20182743,"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-13T21:54:54.436Z","updated_at":"2025-03-10T01:00:01.921Z","avatar_url":"https://github.com/tailhook.png","language":"Rust","readme":"Human Time\n==========\n\n**Status: stable**\n\n[Documentation](https://docs.rs/humantime) |\n[Github](https://github.com/tailhook/humantime) |\n[Crate](https://crates.io/crates/humantime)\n\n\nFeatures:\n\n* Parses durations in free form like `15days 2min 2s`\n* Formats durations in similar form `2years 2min 12us`\n* Parses and formats timestamp in `rfc3339` format: `2018-01-01T12:53:00Z`\n* Parses timestamps in a weaker format: `2018-01-01 12:53:00`\n\nTimestamp parsing/formatting is super-fast because format is basically\nfixed.\n\nHere are some micro-benchmarks:\n\n```\ntest result: ok. 0 passed; 0 failed; 26 ignored; 0 measured; 0 filtered out\n\n     Running target/release/deps/datetime_format-8facb4ac832d9770\n\nrunning 2 tests\ntest rfc3339_chrono            ... bench:         737 ns/iter (+/- 37)\ntest rfc3339_humantime_seconds ... bench:          73 ns/iter (+/- 2)\n\ntest result: ok. 0 passed; 0 failed; 0 ignored; 2 measured; 0 filtered out\n\n     Running target/release/deps/datetime_parse-342628f877d7867c\n\nrunning 6 tests\ntest datetime_utc_parse_millis  ... bench:         228 ns/iter (+/- 11)\ntest datetime_utc_parse_nanos   ... bench:         236 ns/iter (+/- 10)\ntest datetime_utc_parse_seconds ... bench:         204 ns/iter (+/- 18)\ntest rfc3339_humantime_millis   ... bench:          28 ns/iter (+/- 1)\ntest rfc3339_humantime_nanos    ... bench:          36 ns/iter (+/- 2)\ntest rfc3339_humantime_seconds  ... bench:          24 ns/iter (+/- 1)\n\ntest result: ok. 0 passed; 0 failed; 0 ignored; 6 measured; 0 filtered out\n```\n\nSee [humantime-serde] for serde integration (previous crate [serde-humantime] looks unmaintained).\n\n[serde-humantime]: https://docs.rs/serde-humantime/0.1.1/serde_humantime/\n[humantime-serde]: https://docs.rs/humantime-serde\n\nLicense\n=======\n\nLicensed under either of\n\n* Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nat your option.\n\nContribution\n------------\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","funding_links":[],"categories":["Rust"],"sub_categories":["Rust libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fhumantime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailhook%2Fhumantime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fhumantime/lists"}