{"id":15506509,"url":"https://github.com/f-person/lua-timeago","last_synced_at":"2025-04-23T01:56:49.585Z","repository":{"id":40299260,"uuid":"356901262","full_name":"f-person/lua-timeago","owner":"f-person","description":"Simple Lua library library for displaying dates as relative time ago language","archived":false,"fork":false,"pushed_at":"2024-07-27T14:25:49.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T01:56:42.294Z","etag":null,"topics":["lua","lua-library","luajit","timeago"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f-person.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},"funding":{"github":"f-person","custom":"https://www.buymeacoffee.com/fperson"}},"created_at":"2021-04-11T15:12:41.000Z","updated_at":"2024-07-27T14:25:53.000Z","dependencies_parsed_at":"2024-07-27T15:43:58.512Z","dependency_job_id":"f4a937b8-3992-4b42-a5ee-e4b70c60490c","html_url":"https://github.com/f-person/lua-timeago","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-person%2Flua-timeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-person%2Flua-timeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-person%2Flua-timeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-person%2Flua-timeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f-person","download_url":"https://codeload.github.com/f-person/lua-timeago/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354304,"owners_count":21416751,"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":["lua","lua-library","luajit","timeago"],"created_at":"2024-10-02T09:28:06.593Z","updated_at":"2025-04-23T01:56:49.560Z","avatar_url":"https://github.com/f-person.png","language":"Lua","readme":"# lua-timeago\nSimple Lua library for displaying dates as relative time ago language \n\n## Installation\nYou can just copy the source files into your project or use the [rock](https://luarocks.org/modules/f-person/lua-timeago) with [luarocks](https://luarocks.org/).\n\n## Basic Usage\n```lua\nlocal timeago = require('lua-timeago')\n\nlocal now = os.time()\ntimeago.format(now - (60 * 5)) -- Returns '5 minutes ago'\n```\n\n### Language\nThe library uses English by default. You can set the language with `set_language`\nfunction. It accepts a string with the language file name from the `languages`\ndirectory or a dictionary with language rules (take a look at `languages/en.lua` for an example).\n\n```lua\nlocal timeago = require('lua-timeago')\n\nlocal now = os.time()\ntimeago.format(now - (60 * 5)) -- Returns '5 minutes ago'\n\ntimeago.set_language('hy')\ntimeago.format(now - (60 * 5)) -- Returns '5 րոպե առաջ'\n```\n\n---\nThanks to [wscherphof/lua-timeago](https://github.com/wscherphof/lua-timeago)\n","funding_links":["https://github.com/sponsors/f-person","https://www.buymeacoffee.com/fperson"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff-person%2Flua-timeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff-person%2Flua-timeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff-person%2Flua-timeago/lists"}