{"id":13721376,"url":"https://github.com/juancarlospaco/nim-datetime2human","last_synced_at":"2025-03-21T20:16:35.783Z","repository":{"id":87656722,"uuid":"132298892","full_name":"juancarlospaco/nim-datetime2human","owner":"juancarlospaco","description":"Calculate date \u0026 time with precision from seconds to millenniums. Human friendly date time as string. ISO-8601 representation and more.","archived":false,"fork":false,"pushed_at":"2023-10-12T12:13:59.000Z","size":17,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T14:48:39.010Z","etag":null,"topics":["datetime","human","human-friendly","iso8601","nim","nim-lang"],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"liberapay":"juancarlospaco","custom":["https://liberapay.com/juancarlospaco/donate","https://streamlabs.com/juancarlospaco"]}},"created_at":"2018-05-06T02:03:22.000Z","updated_at":"2023-10-12T12:14:05.000Z","dependencies_parsed_at":"2024-01-06T01:04:11.004Z","dependency_job_id":"8cab1c67-1bef-4b1f-a4c9-9dbba26e799c","html_url":"https://github.com/juancarlospaco/nim-datetime2human","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/juancarlospaco%2Fnim-datetime2human","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-datetime2human/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-datetime2human/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-datetime2human/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/nim-datetime2human/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244860611,"owners_count":20522466,"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":["datetime","human","human-friendly","iso8601","nim","nim-lang"],"created_at":"2024-08-03T01:01:16.240Z","updated_at":"2025-03-21T20:16:35.761Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://liberapay.com/juancarlospaco","https://liberapay.com/juancarlospaco/donate","https://streamlabs.com/juancarlospaco"],"categories":["Date Time","Operating System"],"sub_categories":["Byte Size","Date and Time"],"readme":"# nim-datetime2human\n\nCalculate date \u0026amp; time with precision from seconds to millenniums.\nHuman friendly date time as string. ISO-8601.\n\n![screenshot](https://source.unsplash.com/BXOXnQ26B7o/800x402 \"Illustrative Photo by https://unsplash.com/@aronvisuals\")\n\n\n# Use\n\n```nim\n\u003e\u003e\u003e import datetime2human\n\u003e\u003e\u003e echo datetime2human(now())\n(human: \"5 Decades 2 Years 6 Months 2 Weeks 3 Days 2 Hours 4 Minutes 16 Seconds\", short: \"5 Decades\", iso: \"2018-05-05 23:04:16-03:00\", units: (seconds: 16, minutes: 4, hours: 2, days: 3, weeks: 2, months: 6, years: 2, decades: 5, centuries: 0, millenniums: 0))\necho now2human()\n(human: \"5 Decades 2 Years 6 Months 2 Weeks 3 Days 2 Hours 4 Minutes 16 Seconds\", short: \"5 Decades\", iso: \"2018-05-05 23:04:16-03:00\", units: (seconds: 16, minutes: 4, hours: 2, days: 3, weeks: 2, months: 6, years: 2, decades: 5, centuries: 0, millenniums: 0))\n\u003e\u003e\u003e\n```\n\n\n# Install\n\n```\nnimble install datetime2human\n```\n\n\n# Requisites\n\n- [Nim](https://nim-lang.org)\n\n\n# Documentation\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003edatetime2human()\u003c/b\u003e\u003c/summary\u003e\n\n**Description:**\nCalculate date \u0026amp; time with precision from seconds to millenniums.\nHuman friendly date time as string. ISO-8601 representation.\nThe proc only accepts `DateTime`.\n\n**Arguments:**\n- `datetime_obj` A valid `DateTime` object, `DateTime` type, required.\n\n**Returns:** `HumanTimes` type, a tuple.\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003enow2human()\u003c/b\u003e\u003c/summary\u003e\n\n**Description:**\nNow expressed as human friendly time units string, Just a shortcut to `datetime2human`.\n\n**Arguments:** None.\n\n**Returns:** `HumanTimes` type, a tuple.\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-datetime2human","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fnim-datetime2human","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-datetime2human/lists"}