{"id":20159912,"url":"https://github.com/diogok/datemath-clj","last_synced_at":"2026-06-06T04:32:07.548Z","repository":{"id":66679546,"uuid":"228739313","full_name":"diogok/datemath-clj","owner":"diogok","description":"Relative time date math in clojure","archived":false,"fork":false,"pushed_at":"2020-01-13T21:47:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T13:09:31.992Z","etag":null,"topics":["clojure","datemath","datetime"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diogok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-12-18T02:16:52.000Z","updated_at":"2020-03-04T13:53:16.000Z","dependencies_parsed_at":"2023-05-26T19:30:38.905Z","dependency_job_id":null,"html_url":"https://github.com/diogok/datemath-clj","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/diogok%2Fdatemath-clj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fdatemath-clj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fdatemath-clj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fdatemath-clj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diogok","download_url":"https://codeload.github.com/diogok/datemath-clj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241597709,"owners_count":19988300,"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":["clojure","datemath","datetime"],"created_at":"2024-11-14T00:10:58.104Z","updated_at":"2026-06-06T04:32:07.514Z","avatar_url":"https://github.com/diogok.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datemath\n\nBasic datemath operation for relative time from string, in clojure based of java time.\n\n## Usage\n\n[![Clojars Project](https://img.shields.io/clojars/v/org.clojars.diogok/datemath.svg)](https://clojars.org/org.clojars.diogok/datemath)\n\nRequire and use:\n\n```clojure\n(require '[datemath.core :as dm])\n\n(dm/calc \"now/w +15d -1s\") #_\"Return a java.time.ZonedDateTime of the proper date\"\n(dm/calc \"2019-01-02T00:10:30Z||/w +15d -1s\") #_\"Also support iso zoned date string\"\n```\n\nAvailable operations:\n\n- `+` add time units\n- `-` remove time units\n- `/` round to/truncate to time unit lower boundary\n\nAvailable units:\n\n- `s` for seconds\n- `m` for minutes\n- `h` for hours\n- `d` for days\n- `w` for weeks\n- `M` for months\n- `y` for years\n\nYou should always start with `now` or an ISO formated with timezone info such as `2019-01-02T00:10:30Z` or `2019-01-02T00:10:30+00:00`, it will use timezoned date time.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fdatemath-clj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiogok%2Fdatemath-clj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fdatemath-clj/lists"}