{"id":16843128,"url":"https://github.com/dgsb/tt","last_synced_at":"2025-07-18T04:37:40.164Z","repository":{"id":65253638,"uuid":"525834897","full_name":"dgsb/tt","owner":"dgsb","description":"sqlite based time tracking tool","archived":false,"fork":false,"pushed_at":"2023-11-17T15:58:46.000Z","size":157,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T05:44:18.403Z","etag":null,"topics":["sqlite","timetracker","timetracking"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dgsb.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":"2022-08-17T14:42:56.000Z","updated_at":"2024-11-26T08:33:10.000Z","dependencies_parsed_at":"2024-06-20T08:23:57.624Z","dependency_job_id":"f1a91825-adc5-4907-b24b-d81525db4b5d","html_url":"https://github.com/dgsb/tt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dgsb/tt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgsb%2Ftt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgsb%2Ftt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgsb%2Ftt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgsb%2Ftt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgsb","download_url":"https://codeload.github.com/dgsb/tt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgsb%2Ftt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265701429,"owners_count":23813751,"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":["sqlite","timetracker","timetracking"],"created_at":"2024-10-13T12:49:42.521Z","updated_at":"2025-07-18T04:37:40.135Z","avatar_url":"https://github.com/dgsb.png","language":"Go","readme":"# Time Tracker\n\n## What is it ?\n\n`tt` is a time tracking tools which uses an sqlite database as the data store.\nThe default database used is located in this file: `${HOME}/.tt.db`.\nIt has been mostly inspired by [timewarrior](https://timewarrior.net/).\nThe goal is to:\n* have a simpler user interface\n* get rid of the set of json file used to hold the data\n* have a single data file instead.\n* have a powerful query language for reports\n\n## Building and installing\n\nThe build process is quite simple and only requires the golang compiler.\nThe repository needs to be cloned first and the binary can then be installed with the `go install` command\nif the go compiler has been installed properly.\n\n```\n$ git clone github.com/dgsb/tt\n$ cd tt\n$ go install .\n```\n\n## Usage\n\nThe database file will be built upon the first command invocation.\n\n### basic usage\n\n* to start a time tracking activity\n```\n$ tt start\n```\n* to stop a time tracking activity\n```\n$ tt stop\n```\n* to list the current day activities\n```\n$ tt list\n```\n* to list the current week activities (from monday to sunday)\n```\n$ tt list :week\n```\n* to start a time tracking activity with tag\n```\n$ tt start developement\n```\n* to start a time tracking activity with multiple tags\n```\n$ tt start developement ticket-1234\n```\n* to get more help\n```\n$ tt --help\n```\n\nMost commands takes flags to alter the start or stop time instead\nof merely using the current time.\n\nAn time tracking activity doesn't need to be closed before starting a new one.\nThe start command will automatically close the current opened tracking activity before opening a new one.\n\n```\n$ tt start development\n$ tt start meeting\n$ tt start qa\n```\n\n### Specifying the start and stop timestamp\n\n`start` and `stop` subcommands have `--at` and `--ago` flags to allow to\nspecity the timestamp the command must use instead of merely using now.\n\nThe `--at` can take several format, it uses in this order the following format and stops as soon\nas one matches:\n * an RFC3339 formatted timestamp,\n * an RFC3339 **without** the timezone part, the local host timezone is used\n * a simple `hh:mm` format (24h wide hour)\nIf a format does not match it fallback on the next one.\n\nThe `--ago` specify a duration back in time from now to compute the timestamp.\nThis flag parameter can take anything that\n[time.ParseDuration](https://pkg.go.dev/time#ParseDuration) understands\n\n### Manually inspecting the database\n\nThe raw content of time tracking database can be accessed directly through the sqlite3 CLI.\n```\nsqlite3 ${HOME}/.tt.db\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgsb%2Ftt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgsb%2Ftt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgsb%2Ftt/lists"}