{"id":16810238,"url":"https://github.com/tessus/uts2ts","last_synced_at":"2025-10-28T20:20:18.299Z","repository":{"id":183757572,"uuid":"670602017","full_name":"tessus/uts2ts","owner":"tessus","description":"Convert a unix timestamp (seconds) to a struct {year, month, day, hour, minute, second, weekday}.","archived":false,"fork":false,"pushed_at":"2025-04-19T04:28:46.000Z","size":65,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T07:48:22.543Z","etag":null,"topics":["epoch","timestamp","timestamp-conversion","unix"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/uts2ts","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/tessus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tessus","liberapay":"tessarek"}},"created_at":"2023-07-25T12:20:06.000Z","updated_at":"2023-10-22T11:34:11.000Z","dependencies_parsed_at":"2025-02-18T11:32:04.069Z","dependency_job_id":"bc5d83f7-3bb9-402d-a60f-2ef539a84fef","html_url":"https://github.com/tessus/uts2ts","commit_stats":null,"previous_names":["tessus/uts2ts"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tessus/uts2ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessus%2Futs2ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessus%2Futs2ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessus%2Futs2ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessus%2Futs2ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tessus","download_url":"https://codeload.github.com/tessus/uts2ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessus%2Futs2ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272004281,"owners_count":24856937,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["epoch","timestamp","timestamp-conversion","unix"],"created_at":"2024-10-13T10:14:52.599Z","updated_at":"2025-10-28T20:20:18.275Z","avatar_url":"https://github.com/tessus.png","language":"Rust","funding_links":["https://github.com/sponsors/tessus","https://liberapay.com/tessarek"],"categories":[],"sub_categories":[],"readme":"# uts2ts\n\n[![GitHub Tag](https://img.shields.io/github/v/tag/tessus/uts2ts?style=flat\u0026logo=GitHub\u0026logoColor=white\u0026color=blue)](https://github.com/tessus/uts2ts/tags)\n[![Crate Release](https://img.shields.io/crates/v/uts2ts?style=flat\u0026logo=Rust\u0026logoColor=white)](https://crates.io/crates/uts2ts/)\n[![Documentation](https://img.shields.io/docsrs/uts2ts?style=flat\u0026logo=Rust\u0026logoColor=white)](https://docs.rs/uts2ts/)\n\n`uts2ts` is a simple function that does only one thing:\n\n\u003e It converts a unix timestamp to something slightly more useful. ;-)\n\nSo why then? Well, it's not always warranted to pull in a myriad of dependencies when you need this one, little thingy.\n\nFor complex time and date calculations and manipulations, please refer to the more functional complete crates [chrono] and [time].\n\nPlease note that the `as_string()` method is just a quick way of generating a human readable date/time string that\n\n- is unambiguous and close to ISO 8601 (or RFC 3339)\n- can be used as an example how to write your own formatting function\n- is NOT an attempt to reinvent all the goodies other crates provide\n\n## Examples\n\n```rust\nuse uts2ts::uts2ts;\n\nfn main() {\n    let ts = uts2ts(204158100);\n\n    // Timestamp { year: 1976, month: 6, day: 20, hour: 22, minute: 35, second: 0, weekday: 0 }\n    println!(\"{:?}\", ts);\n\n    // 1976-06-20 22:35:00\n    println!(\"{}\", ts.as_string());\n\n    // 1976-06-20 22:35:00 +0000\n    println!(\"{}\", ts.as_string_utc());\n}\n```\n\n## Maintenance Status\n\nThis library does not have any dependencies and is feature complete.\n\nTherefore there aren't any regular updates and as a result it might seem that this project has been abandoned. However, this is not the case.\n\nThis project is maintained.\n\n[chrono]: https://crates.io/crates/chrono\n[time]: https://crates.io/crates/time\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessus%2Futs2ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftessus%2Futs2ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessus%2Futs2ts/lists"}