{"id":15324532,"url":"https://github.com/mrinjamul/go-timeago","last_synced_at":"2025-10-26T23:38:03.844Z","repository":{"id":57599718,"uuid":"356685814","full_name":"mrinjamul/go-timeago","owner":"mrinjamul","description":"go-timeago will evaluate time and return that time in words.","archived":false,"fork":false,"pushed_at":"2023-01-19T04:19:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T12:15:39.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrinjamul.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":"2021-04-10T20:21:18.000Z","updated_at":"2023-01-03T23:32:21.000Z","dependencies_parsed_at":"2023-02-01T14:00:15.801Z","dependency_job_id":null,"html_url":"https://github.com/mrinjamul/go-timeago","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-timeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-timeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-timeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-timeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrinjamul","download_url":"https://codeload.github.com/mrinjamul/go-timeago/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960637,"owners_count":20375108,"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-01T09:27:07.334Z","updated_at":"2025-10-26T23:37:58.801Z","avatar_url":"https://github.com/mrinjamul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-timeago\n\n[![Go Reference](https://pkg.go.dev/badge/golang.org/x/pkgsite.svg)](https://pkg.go.dev/github.com/mrinjamul/go-timeago)\n[![GoReportCard](https://goreportcard.com/badge/github.com/mrinjamul/go-timeago)](https://goreportcard.com/report/github.com/mrinjamul/go-timeago)\n[![Code style: Standard](https://img.shields.io/badge/code%20style-Standard-blue.svg)]()\n[![License: BSD-3 ](https://img.shields.io/badge/License-BSD%203-blue.svg)](https://github.com/mrinjamul/go-timeago/blob/main/LICENSE)\n\n## What is this?\n\nA go module to calculate the time difference between two dates and return the value in words.\n\nNo third-party library used.\n\n## How to use this module?\n\nTo use this module,\n\n```sh\ngo get github.com/mrinjamul/go-timeago\n```\n\nand then,\n\n```go\nimport (\n    ...\n    \"github.com/mrinjamul/go-timeago\"\n)\n```\n\n### Examples\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/mrinjamul/go-timeago\"\n)\n\nfunc main() {\n\ttime := time.Date(2021, 0, 0, 0, 0, 0, 0, time.Local)\n\tmsg, err := timeago.FormatNow(time)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\tfmt.Println(msg)\n}\n```\n\nOutput:\n\n    4 months ago\n\n## License\n\nThis go module is licensed under BSD 3-Clause Copyright © 2021 Injamul Mohammad Mollah \u003cmrinjamul@gmail.com\u003e\n\n## Thanks\n\nThis go package is inspired by [mrasif/timeago](https://github.com/mrasif/timeago) written in Java.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinjamul%2Fgo-timeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrinjamul%2Fgo-timeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinjamul%2Fgo-timeago/lists"}