{"id":37214822,"url":"https://github.com/invzhi/timex","last_synced_at":"2026-01-15T00:51:16.286Z","repository":{"id":173690877,"uuid":"619113550","full_name":"invzhi/timex","owner":"invzhi","description":":date: A Go package that extends the standard library time with dedicated date and time-of-day types.","archived":false,"fork":false,"pushed_at":"2025-11-14T07:40:54.000Z","size":52,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T08:34:06.067Z","etag":null,"topics":["date","go","golang"],"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/invzhi.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-26T10:05:52.000Z","updated_at":"2025-11-14T07:40:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3d0b3ba-8b5e-41d5-8892-505113541981","html_url":"https://github.com/invzhi/timex","commit_stats":null,"previous_names":["invzhi/timex"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/invzhi/timex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invzhi%2Ftimex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invzhi%2Ftimex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invzhi%2Ftimex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invzhi%2Ftimex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invzhi","download_url":"https://codeload.github.com/invzhi/timex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invzhi%2Ftimex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"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":["date","go","golang"],"created_at":"2026-01-15T00:51:15.747Z","updated_at":"2026-01-15T00:51:16.279Z","avatar_url":"https://github.com/invzhi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timex\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/invzhi/timex.svg)](https://pkg.go.dev/github.com/invzhi/timex)\n[![Go Report Card](https://goreportcard.com/badge/github.com/invzhi/timex)](https://goreportcard.com/report/github.com/invzhi/timex)\n[![codecov](https://codecov.io/gh/invzhi/timex/branch/main/graph/badge.svg?token=I2M6JCGY84)](https://codecov.io/gh/invzhi/timex)\n\n📅 A Go package that extends the standard library time with dedicated date and time-of-day types.\n\n## Why use timex?\n\n`timex` is a lightweight and efficiently designed Go package that provides dedicated `Date` and `TimeOfDay` types. It's built with 100% unit test coverage and has no third-party dependencies, making it a reliable choice for time-related operations.\n\n- **Missing Standard Library Types:** Go's `time` package lacks distinct types for handling just a date or just a time of day. `timex` introduces `Date` and `TimeOfDay` to bridge this gap, offering a more intuitive and focused API for these specific use cases.\n- **Simplicity and Clarity:** Our `Date` type focuses exclusively on date operations (YYYY-MM-DD), avoiding timezone-related issues inherent in `time.Time` when only a calendar date matters. Similarly, `TimeOfDay` provides a clear HH:mm:ss format for operations strictly on time, independent of any particular date.\n- **Lightweight \u0026 Efficient:** `timex` is designed to be lean, with fast method implementations that often outperform `time.Time` for specific date and time-of-day calculations. It's built without any external dependencies, ensuring a minimal footprint.\n- **Database \u0026 JSON Compatibility:** Work directly with `DATE` and `TIME` types in databases like MySQL or PostgreSQL, and effortlessly serialize/deserialize these types to and from JSON.\n- **Reliability:** With 100% unit test coverage, you can be confident in the package's correctness and stability.\n\n## Getting Started\n\n```\ngo get github.com/invzhi/timex\n```\n\n## Reference\n\n- [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)\n- [Date Type Proposal](https://github.com/golang/go/issues/21365)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvzhi%2Ftimex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvzhi%2Ftimex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvzhi%2Ftimex/lists"}