{"id":18269790,"url":"https://github.com/marlonlom/timeago","last_synced_at":"2026-01-02T00:21:38.041Z","repository":{"id":54518159,"uuid":"74187685","full_name":"marlonlom/timeago","owner":"marlonlom","description":"Simple java library for displaying dates as relative time ago language.","archived":false,"fork":false,"pushed_at":"2025-05-13T15:56:20.000Z","size":2120,"stargazers_count":370,"open_issues_count":0,"forks_count":74,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-13T16:52:01.892Z","etag":null,"topics":["android-library","dates","java-library","kotlin-library","time-and-date-diff","timeago"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/marlonlom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":"marlonlom","custom":["https://www.paypal.me/marlonlom"]}},"created_at":"2016-11-19T04:49:25.000Z","updated_at":"2025-05-13T15:56:20.000Z","dependencies_parsed_at":"2025-03-08T19:26:31.984Z","dependency_job_id":"23b03e7c-262b-42bf-b842-01024fc55d60","html_url":"https://github.com/marlonlom/timeago","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Ftimeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Ftimeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Ftimeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Ftimeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlonlom","download_url":"https://codeload.github.com/marlonlom/timeago/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355334,"owners_count":22057354,"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":["android-library","dates","java-library","kotlin-library","time-and-date-diff","timeago"],"created_at":"2024-11-05T11:37:12.380Z","updated_at":"2026-01-02T00:21:38.000Z","avatar_url":"https://github.com/marlonlom.png","language":"Kotlin","funding_links":["https://github.com/sponsors/marlonlom","https://www.paypal.me/marlonlom"],"categories":["timeago"],"sub_categories":[],"readme":"# TimeAgo\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.marlonlom/timeago.svg)](http://www.mvnrepository.com/artifact/com.github.marlonlom/timeago)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Timeago-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/4707)\n[![Android Build](https://github.com/marlonlom/timeago/actions/workflows/build.yml/badge.svg)](https://github.com/marlonlom/timeago/actions/workflows/build.yml)\n[![CodeFactor](https://www.codefactor.io/repository/github/marlonlom/timeago/badge)](https://www.codefactor.io/repository/github/marlonlom/timeago)\n\nSimple java library for displaying dates as relative time ago language.\n\n## Examples:\n\n```\n- 4 days ago\n- 15 years ago\n- a minute ago\n- just now\n```\n\n## Usage:\n\n### Import as a dependency:\n\nGradle (Kotlin):\n\n```\nimplementation(\"com.github.marlonlom:timeago:$latestVersion\")\n```\n\nGradle (Groovy):\n\n```\nimplementation \"com.github.marlonlom:timeago:$latestVersion\"\n```\n\nMaven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.marlonlom\u003c/groupId\u003e\n  \u003cartifactId\u003etimeago\u003c/artifactId\u003e\n  \u003cversion\u003e$latestVersion\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Use it in your code:\n\n```java\nString text=TimeAgo.using(timeInMillis);\n```\n\nWhere _timeInMillis_, based on current date and time, is defined like\n\n```java\n/* You can use java.util.Calendar.getInstance().getTimeInMillis()*/\n/* Also, with java 8, java.time.Instant.now().toEpochMilli() */\n\nlong timeInMillis=System.currentTimeMillis();\n```\n\n### With Specific Locale (by language tag):\n\nFor specific language usage, use _TimeAgoMessages_:\n\n```java\nLocale LocaleBylanguageTag=Locale.forLanguageTag(\"es\");\nTimeAgoMessages messages=new TimeAgoMessages.Builder().withLocale(LocaleBylanguageTag).build();\n\nString text=TimeAgo.using(timeInMillis,messages);\n```\n\n#### Languages supported\nSpanish (es), English (en), Dutch (nl), German (de), French (fr), Italian (it), Portuguese (pt),\nIndonesian (id), Czech (cs), Arabic (ar), and more. You can see more\ndetails [reading this information](docs/languages_supported.md).\n\n## Demo\n\nCheck the [Demo](https://goo.gl/y66vh4) here.\n\n![Sample app running](ta_screenshots/ta_sample_running.webp \"Sample app running\")\n\n\n# Documentation\n\n## Code-of-Conduct\n\nSee the [code of conduct](CODE_OF_CONDUCT.md) document for more information.\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) document for more information.\n\n\n### License\nThis application is distributed under the terms of the Apache License (Version 2.0). See the [license](LICENSE) for more\ninformation.\n\n```\nCopyright 2016 marlonlom\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonlom%2Ftimeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlonlom%2Ftimeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonlom%2Ftimeago/lists"}