{"id":20460994,"url":"https://github.com/ericgj/ts","last_synced_at":"2026-04-20T07:03:17.426Z","repository":{"id":138272500,"uuid":"51703926","full_name":"ericgj/ts","owner":"ericgj","description":"Yet another CLI timesheet app","archived":false,"fork":false,"pushed_at":"2016-03-03T00:17:11.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T14:55:20.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ericgj.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":"2016-02-14T17:07:11.000Z","updated_at":"2016-03-02T02:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a51f7778-d309-49c8-8227-4cef8fafba9a","html_url":"https://github.com/ericgj/ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericgj/ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":"2024-11-15T12:22:47.192Z","updated_at":"2026-04-20T07:03:17.412Z","avatar_url":"https://github.com/ericgj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts\n\nYet another CLI timesheet app\n\n## Logging time\n\n### Log time already spent\n    ts log \"Project DEF\" \"Send data\" 35\n\n    \n### Start time on task\n    ts start \"Project ABC\" \"Revise specs\"\n\n  \n### Stop time on task\n    ts stop\n\n  - and change the description\n\n        ts stop \"Revise specs; ran into some questions, wrote back client\"\n\n  - and adjust the time (in minutes)\n        \n        ts stop \"\" -5\n\n### Check time on current timed task\n    ts check\n\n### Cancel current timed task\n    ts cancel\n\n\n### Shift time\n    ts shift Meeting \"to resolve crisis\" 3\n\nNote: run this _after_ the interruption ends to split the time.  In this\nexample, we are saying the interrupting task (Meeting) started 3 minutes\nafter starting the task currently being timed. So, the time is logged for the\nMeeting, minus 3 minutes. The current task is then restarted with 3 minutes\n\"credit\".\n\n\n## Reporting time\n\n### List all logged time\n    ts list\n\n  - or by category\n        \n        ts list \"Project ABC\"\n\nNote:\n  - You can use regular expressions to filter the category.\n  - The listing is not formatted in any way. Typically you will want to pipe it\n    to a program that can do something useful with the data. See for example\n    `ts select` below.\n\n\n### Run a query on logged time\n    ts select \"Project DEF\" some/query.sql\n\nNote: \n  - This requires python and sqlite. \n  - Query files can be any set of SQL statements in sqlite syntax.\n  - By default, the data is manipulated in-memory, but you can also persist \n    to an sqlite file by specifying an additional parameter:\n\n        ts select \"\" some/query.sql data.sqlite\n\n  - There is an example query file in `reporters/summary.sql`.\n\n\n## Installation\n\n    cd ~\n    git clone git@github.com:ericgj/ts.git .ts\n    cd .ts\n    make mod\n\n    # add ~/.ts to your $PATH as you please\n\n\n## What it does\n\nTimesheet records are added to the file `ts-data` as pipe (|) delimited fields:\n\n  - Start time (Unix timestamp, i.e. seconds from epoch)\n  - Stop time (Unix timestamp)\n  - Category (e.g. \"Project ABC\")\n  - Description\n  - Minutes adjustment (specified in `stop` or `log`).\n\nWhile time is started on a task, a temporary record is saved to `.ts-data`\n\nFiles are stored relative to wherever you install the script.\n\nIf you want to save data somewhere else, feel free to edit `ts`.\n\n\n## License\n\nThe MIT License (MIT) Copyright (c) 2016 `Eric Gjertsen \u003cericgj72@gmail.com\u003e`\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fts/lists"}