{"id":20033203,"url":"https://github.com/tbabej/task.default-date-time","last_synced_at":"2025-05-05T05:31:03.123Z","repository":{"id":25536738,"uuid":"28969265","full_name":"tbabej/task.default-date-time","owner":"tbabej","description":"A hook to change default time for tasks when only date is specified. May your today's task no longer be overdue!","archived":false,"fork":false,"pushed_at":"2022-11-17T18:28:10.000Z","size":7,"stargazers_count":27,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T23:28:45.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbabej.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}},"created_at":"2015-01-08T14:22:23.000Z","updated_at":"2025-04-14T14:42:37.000Z","dependencies_parsed_at":"2023-01-14T02:55:00.755Z","dependency_job_id":null,"html_url":"https://github.com/tbabej/task.default-date-time","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/tbabej%2Ftask.default-date-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbabej%2Ftask.default-date-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbabej%2Ftask.default-date-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbabej%2Ftask.default-date-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbabej","download_url":"https://codeload.github.com/tbabej/task.default-date-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252445793,"owners_count":21749119,"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-11-13T09:44:57.319Z","updated_at":"2025-05-05T05:31:02.884Z","avatar_url":"https://github.com/tbabej.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Taskwarrior Default Date Time Tracking Hook\n-------------------------------------------\n\nThis is a pair of hooks for TaskWarrior (http://www.taskwarrior.org),\nwhich allow you to set a different time when specifying due time\nusing only dates.\n\n\nInstall\n-------\n\nNote: This hook has been rewritten to leverage taskpirate, for greater hook efficiency.\nPlease see https://github.com/tbabej/taskpirate for instructions. Don't worry, it's straightforward.\n\n```\ngit clone https://github.com/tbabej/taskwarrior-default-date-time-hook.git ~/.task/hooks/default-time\n```\n\nThis hook leverages tasklib, so you need to install that too:\n\n```\npip --user install tasklib\n```\n\nConfiguration\n-------------\n\nEdit the script and set your desired default time (in your local timezone).\nFor default task date time of 21:30, it should look as follows:\n\n```\nDEFAULT_TIME = time(21,30,0)  # Your wanted default time\n```\n\nExample of usage\n----------------\n\nAdd a task that has specified due time, but only as a date.\n\n```\n$ task add test due:today\nCreated task 4.\nDefault due time has been set.\n```\n\nWe can see the message is outputted to notify us that\ncustom default due time has been used. Indeed, if we check:\n\n```\n$ task 4 info\n\nName          Value                                     \nID            4\nDescription   test                                      \nStatus        Pending\nEntered       2015-01-08 07:17:26 (44 seconds)          \nDue           2015-01-08 22:00:00\nLast modified 2015-01-08 07:17:26 (44 seconds)          \nUUID          86d1b114-6550-4213-82dd-d42a05828288\nUrgency       8.672                                     \n                               due 0.723  *   12 =  8.67\n```\n\nWe can see this task has due time of 22:00.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbabej%2Ftask.default-date-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbabej%2Ftask.default-date-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbabej%2Ftask.default-date-time/lists"}