{"id":33231770,"url":"https://github.com/enaeher/local-time-duration","last_synced_at":"2026-02-10T00:11:28.544Z","repository":{"id":13005845,"uuid":"15685157","full_name":"enaeher/local-time-duration","owner":"enaeher","description":"Duration processing library built on top of local-time.","archived":false,"fork":false,"pushed_at":"2019-05-10T10:27:46.000Z","size":32,"stargazers_count":16,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T22:12:41.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enaeher.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG","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":"2014-01-06T21:08:14.000Z","updated_at":"2022-11-05T15:07:59.000Z","dependencies_parsed_at":"2022-08-28T12:11:23.573Z","dependency_job_id":null,"html_url":"https://github.com/enaeher/local-time-duration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enaeher/local-time-duration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enaeher%2Flocal-time-duration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enaeher%2Flocal-time-duration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enaeher%2Flocal-time-duration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enaeher%2Flocal-time-duration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enaeher","download_url":"https://codeload.github.com/enaeher/local-time-duration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enaeher%2Flocal-time-duration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284759739,"owners_count":27058842,"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","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"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":"2025-11-16T18:00:20.906Z","updated_at":"2025-11-16T19:01:21.772Z","avatar_url":"https://github.com/enaeher.png","language":"Common Lisp","readme":"\n# local-time-duration\n\nThis is a simple library that provides a `duration` class, and some useful accompanying operations. It is built on and requires the [local-time](http://common-lisp.net/projects/local-time/) library.\n\n## Assumptions and limitations\n\n\nDurations describe a length of time\u0026mdash;e.g., \"4 days\" or \"5 hours and 29 minutes\"\u0026mdash;without reference to a particular start or end time. Unlike the [time-interval](https://github.com/slyrus/time-interval) library, `local-time-duration` makes no attempt to deal with variable-length units. In particular, durations may neither be specified nor represented in terms of years or months. Also, since durations do not represent a specific interval of time with a specific start or end time, there is no attempt when working exclusively with durations to handle leap seconds, timezone or daylight savings time changes, etc. However, when adding or removing a duration to or from a `local-time` timestamp, the `local-time` library will correctly handle timezone/DST.\n\n## Examples\n\n```\nLTD\u003e (duration :day 1 :minute 75)\n#\u003cDURATION [1/4500/0] 1 day 1 hour 15 minutes\u003e\n\nLTD\u003e (duration= (duration :day 1) (duration :hour 24))\nT\n\nLTD\u003e (duration+ (duration :hour 1) (duration :hour 23))\n#\u003cDURATION [1/0/0] 1 day\u003e\n```\n\nA duration can be expressed in any arbitrary unit (the second value is the remainder of the duration that cannot be expressed in whole units):\n\n```\nLTD\u003e (duration-as (duration :day 1 :hour 4 :minute 25) :hour)\n28\n#\u003cDURATION [0/1500/0] 25 minutes\u003e\n```\n\n`local-time-duration` also provides functions for working with `local-time` timestamps in conjunction with durations:\n\n```\nLTD\u003e (timestamp-difference @2014-01-01T09:00:00 @2014-01-01T06:00:00)\n#\u003cDURATION [0/10800/0] 3 hours\u003e\n```","funding_links":[],"categories":["Python ##","Online editors ##"],"sub_categories":["Third-party APIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenaeher%2Flocal-time-duration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenaeher%2Flocal-time-duration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenaeher%2Flocal-time-duration/lists"}