{"id":15570909,"url":"https://github.com/mjs/logseq-done-time","last_synced_at":"2025-04-09T17:05:18.984Z","repository":{"id":223381266,"uuid":"760158417","full_name":"mjs/logseq-done-time","owner":"mjs","description":"Logseq plugin which adds a timestamp to tasks when they're marked as DONE","archived":false,"fork":false,"pushed_at":"2024-03-20T17:48:37.000Z","size":1076,"stargazers_count":10,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T17:05:10.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","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/mjs.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}},"created_at":"2024-02-19T22:21:33.000Z","updated_at":"2025-04-07T15:03:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"b90325d4-028a-47f4-a0d9-db957fb23603","html_url":"https://github.com/mjs/logseq-done-time","commit_stats":null,"previous_names":["mjs/logseq-done-time"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Flogseq-done-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Flogseq-done-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Flogseq-done-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Flogseq-done-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjs","download_url":"https://codeload.github.com/mjs/logseq-done-time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074976,"owners_count":21043490,"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":[],"created_at":"2024-10-02T17:49:24.951Z","updated_at":"2025-04-09T17:05:18.952Z","avatar_url":"https://github.com/mjs.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Logseq](https://logseq.com) done time plugin\n\nThis simple Logseq plugin adds a property to task blocks when they are marked\nas done. This can be used for creating reports for tasks done yesterday, last\nweek etc.\n\nLook for \"done time\" in the Logseq Marketplace.\n\n## Features\n\n* Adds a `done-ms` property to tasks when they are marked as DONE.\n* This property is in milliseconds to support sorting and precise filtering in queries.\n* The property is removed if a task's state changes from DONE to anything else.\n\n## Example queries\n\n### Tasks DONE Today\n\n```\n{\n  :title [:b \"DONE today\"]\n  :query [:find (pull ?b [*])\n      :in $ ?start\n      :where\n       [?b :block/marker ?marker]\n       [(contains? #{\"DONE\"} ?marker)]\n       [?b :block/properties ?props]\n       [(get ?props :done-ms) ?done-ms]\n       [(\u003e= ?done-ms ?start)]\n  ]\n  :inputs [:start-of-today-ms]\n}\n```\n\n### Tasks DONE yesterday\n\n```\n{\n  :title [:b \"DONE yesterday\"]\n  :query [:find (pull ?b [*])\n      :in $ ?start ?end\n      :where\n       [?b :block/marker ?marker]\n       [(= \"DONE\" ?marker)]\n       [?b :block/properties ?props]\n       [(get ?props :done-ms) ?done-ms]\n       [(\u003e= ?done-ms ?start)]\n       [(\u003c ?done-ms ?end)]\n  ]\n  :inputs [:-1d-start :start-of-today-ms]\n}\n```\n\n## Tips\n\nThe `done-ms` property isn't particularly nice to look at so I recommend hiding it using the `:block-hidden-properties` option in your `config.edn`.\n\nFor example:\n\n```edn\n  ::block-hidden-properties #{:done-ms}\n```\n\nAlternatively, the [Awesome Props](https://github.com/yoyurec/logseq-awesome-props) plugin can be used to hide the property from view mode while still allowing it to be seen when editing.\n\n## Credit\n\nThis plugin in heavily inspired by the\n[Task completion plugin](https://github.com/DimitryDushkin/logseq-plugin-task-check-date)\nby [DimitryDushkin](https://github.com/DimitryDushkin), and the\n[DONE task property plugin](https://github.com/YU000jp/logseq-plugin-confirmation-done-task)\nby [YU000jp](https://github.com/YU000jp).\n\n\n## How to release\n\n1. `yarn build`\n2. Commit the changes.\n3. `git push`\n4. Make release in GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjs%2Flogseq-done-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjs%2Flogseq-done-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjs%2Flogseq-done-time/lists"}