{"id":22192097,"url":"https://github.com/srinivasreddy/rust-timeago","last_synced_at":"2026-08-12T16:31:38.172Z","repository":{"id":56230641,"uuid":"313103728","full_name":"srinivasreddy/rust-timeago","owner":"srinivasreddy","description":"time ago library, very similar to the js version of https://timeago.org/","archived":false,"fork":false,"pushed_at":"2020-11-19T10:03:28.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T18:06:40.410Z","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/srinivasreddy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"srinivasreddy"}},"created_at":"2020-11-15T19:09:57.000Z","updated_at":"2020-11-19T10:03:30.000Z","dependencies_parsed_at":"2022-08-15T15:01:11.022Z","dependency_job_id":null,"html_url":"https://github.com/srinivasreddy/rust-timeago","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/srinivasreddy/rust-timeago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinivasreddy%2Frust-timeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinivasreddy%2Frust-timeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinivasreddy%2Frust-timeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinivasreddy%2Frust-timeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srinivasreddy","download_url":"https://codeload.github.com/srinivasreddy/rust-timeago/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinivasreddy%2Frust-timeago/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36572174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-12T02:00:07.134Z","response_time":57,"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":[],"created_at":"2024-12-02T12:19:11.551Z","updated_at":"2026-08-12T16:31:38.149Z","avatar_url":"https://github.com/srinivasreddy.png","language":"Rust","funding_links":["https://patreon.com/srinivasreddy"],"categories":[],"sub_categories":[],"readme":"## README\nThis is an yet another implementation of `timeago` time display.This library is mostly\ninspired from the strings you see on stackoverflow.com\n\n## Design\n### Update\nI need to change the logic for \"1 day ago\" and \"n days ago\" logic. For example when it happened on\nWednesday night and saying on Friday \"1 day ago\" because it falls between somewhere 40-47 hours\ndoes not make sense. That is not how days work.\n\n~~I haven't considered the leap second into design and i have taken generally 30 days as month.\nSo you can assume that i have sacrificed accuracy of months at the altar of usability. An year is \nconsidered as 365.25 days long.~~\n\n\n## TODO.\n1. Haven't implemented tests for strings such as `\"Nov 1970 at 17:20:08\"`. I need to use Faketime library\nto mock the current system time.\n\n## Usage\n\n```rust\nuse time_ago::{Config, TimeAgo};\nfn usage() {\n    let config = Config { \n        is_years: false,\n        is_weeks: false,\n        is_months: false,\n    };\n    let a = TimeAgo::with_config(config, SystemTime::now());\n    assert_eq!(a.convert(), \"just now\");\n}\n```\n\nYou can also see the [tests](src/tests.rs) file for more usage.\n### License\nMIT or Apache\n\n### copyright\nSrinivas Reddy Thatiparthy\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinivasreddy%2Frust-timeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrinivasreddy%2Frust-timeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinivasreddy%2Frust-timeago/lists"}