{"id":16506390,"url":"https://github.com/neomantra/tf","last_synced_at":"2026-05-25T16:01:52.541Z","repository":{"id":64303177,"uuid":"429974212","full_name":"neomantra/tf","owner":"neomantra","description":"Human-format timevals in the shell","archived":false,"fork":false,"pushed_at":"2022-04-24T21:44:24.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T01:21:06.420Z","etag":null,"topics":["golang","logging"],"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/neomantra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-20T00:49:57.000Z","updated_at":"2023-10-20T14:40:12.000Z","dependencies_parsed_at":"2023-01-15T10:00:24.982Z","dependency_job_id":null,"html_url":"https://github.com/neomantra/tf","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/neomantra/tf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Ftf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Ftf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Ftf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Ftf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neomantra","download_url":"https://codeload.github.com/neomantra/tf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Ftf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33482411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","logging"],"created_at":"2024-10-11T15:19:31.204Z","updated_at":"2026-05-25T16:01:52.525Z","avatar_url":"https://github.com/neomantra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf - CLI Unix Time formatter\n\n`tf` scans for UNIX epoch times in input and outputs them\nas human readable strings to stdout.\n\n```\n$ cat log.txt\n[1524241219] Time is on my side\n[1555777220] Yes it is\n[1587399621] A time in epoch millis: 1637419929123\n[1618935621] A time in epoch nanos: 1637419929123456789\n\n$ tf -g log.txt\n[12:20:19] Time is on my side\n[12:20:20] Yes it is\n[12:20:21] A time in epoch millis: 09:52:09.123\n[12:20:21] A time in epoch nanos: 09:52:09.123456789\n```\n\n## Usage\n\n```\n$ tf --help\nusage:  tf \u003coptions\u003e [file1 [file2 [...]]]\n\nUNIX Time Formatter (tf)\n\nScans for UNIX epoch times in input and outputs them\nas human readable strings to stdout.\n\n10-digits are interpreted as seconds, 13 as milliseconds,\n16 as microseconds, and 19 as nanoseconds.\n\nIf no filenames or only '-' is passed, stdin is processed.\n\nexamples:\n  $ echo 1637421447 | tf\n  $ tf -g log.txt | head\n\nThe time formatting uses Golang Time.Format layouts:\n  https://pkg.go.dev/time#Time.Format\n\noptions:\n  -b, --block               use block buffering (default: line buffering)\n  -z, --block-size uint32   block buffer size (default 4096)\n  -d, --date                output with date, same as --format '2006-01-02 15:04:05'\n  -f, --format string       output with Golang Time.Format layout (default: '15:04:05')\n  -g, --global              global match (default: convert only first match in line)\n  -h, --help                show help\n```\n\n----\n\n## Installing\n\nBinaries for multiple platforms are [released on GitHub](https://github.com/neomantra/tf/releases) through [GitHub Actions](https://github.com/neomantra/tf/actions).\n\nYou can also install for various platforms with [Homebrew](https://brew.sh) from [`neomantra/homebrew-tap`](https://github.com/neomantra/homebrew-tap):\n\n```\nbrew tap neomantra/homebrew-tap\nbrew install tf\n```\n\n----\n\n## Example Usage\n\nRaw log:\n```\n$ cat log.txt\n[1524241219] Time is on my side\n[1555777220] Yes it is\n[1587399621] A time in epoch millis: 1637419929123\n[1618935621] A time in epoch nanos: 1637419929123456789\n```\n\nBasic usage, piping from `stdin`:\n```\n$ cat log.txt | tf\n[12:20:19] Time is on my side\n[12:20:20] Yes it is\n[12:20:21] A time in epoch millis: 1637419929123\n[12:20:21] A time in epoch nanos: 1637419929123456789\n```\n\nDate conversion:\n```\n$ tf -d log.txt\n[2018-04-20 12:20:19] Time is on my side\n[2019-04-20 12:20:20] Yes it is\n[2020-04-20 12:20:21] A time in epoch millis: 1637419929123\n[2021-04-20 12:20:21] A time in epoch nanos: 1637419929123456789\n````\n\nGlobal match, converting sub-second times:\n```\n$ tf -gd log.txt\n[2018-04-20 12:20:19] Time is on my side\n[2019-04-20 12:20:20] Yes it is\n[2020-04-20 12:20:21] A time in epoch millis: 2021-11-20 09:52:09.123\n[2021-04-20 12:20:21] A time in epoch nanos: 2021-11-20 09:52:09.123456789\n```\n----\n\n## Building\n\nBuilding is performed with [task](https://taskfile.dev/#/):\n\n```\n$ task\ntask: [test] go test neomantra/tf/internal/tf\nok      neomantra/tf/internal/tf\ntask: [build] go build -o tf cmd/tf/main.go\n```\n\n----\n\n## Credits and License\n\nCopyright (c) 2021 Neomantra BV\n\nReleased under the [MIT License](https://en.wikipedia.org/wiki/MIT_License), see [LICENSE.txt](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomantra%2Ftf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneomantra%2Ftf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomantra%2Ftf/lists"}