{"id":16506397,"url":"https://github.com/neomantra/ymdflag","last_synced_at":"2026-03-03T18:02:27.013Z","repository":{"id":187886912,"uuid":"662727799","full_name":"neomantra/ymdflag","owner":"neomantra","description":"YMDFlag implements a Golang flag.Value interface for YYYYMMDD-specified dates, facilitating CLI argument handling of dates like -start-date=20210101","archived":false,"fork":false,"pushed_at":"2023-11-28T05:33:56.000Z","size":27,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-30T06:29:08.146Z","etag":null,"topics":["flag","golang","ymd"],"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,"governance":null}},"created_at":"2023-07-05T18:53:25.000Z","updated_at":"2024-08-17T17:55:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"b903bfe6-af16-469c-9673-4d378cd98ae5","html_url":"https://github.com/neomantra/ymdflag","commit_stats":null,"previous_names":["neomantra/ymdflag"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/neomantra/ymdflag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Fymdflag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Fymdflag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Fymdflag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Fymdflag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neomantra","download_url":"https://codeload.github.com/neomantra/ymdflag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomantra%2Fymdflag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["flag","golang","ymd"],"created_at":"2024-10-11T15:19:31.884Z","updated_at":"2026-03-03T18:02:26.989Z","avatar_url":"https://github.com/neomantra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ymdflag #\n\n[![Units tests](https://github.com/neomantra/ymdflag/actions/workflows/unit_tests.yaml/badge.svg)](https://github.com/neomantra/ymdflag/actions/workflows/unit_tests.yaml)\n[![Coverage Status](https://coveralls.io/repos/neomantra/ymdflag/badge.svg?branch=main\u0026service=github)](https://coveralls.io/github/neomantra/ymdflag?branch=main)\n[![golangci-lint](https://github.com/neomantra/ymdflag/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/neomantra/ymdflag/actions/workflows/golangci-lint.yaml)\n[![CodeQL](https://github.com/neomantra/ymdflag/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/neomantra/ymdflag/actions/workflows/codeql-analysis.yml)\n[![Go ReportCard](https://goreportcard.com/badge/neomantra/ymdflag)](http://goreportcard.com/report/neomantra/ymdflag)\n[![Go Reference](https://pkg.go.dev/badge/github.com/neomantra/ymdflag.svg)](https://pkg.go.dev/github.com/neomantra/ymdflag)\n\n[`YMDFlag`](https://github.com/neomantra/ymdflag) implements a Golang [`flag.Value`](https://pkg.go.dev/flag#Value) interface for `YYYYMMDD`-specified dates.   This facilitiates command-line argument handling of date parameters such  `-start-date=20210101`.\n\n## Documentation ##\n\n```\ngo get github.com/neomantra/ymdflag\n```\n\nhttps://pkg.go.dev/github.com/neomantra/ymdflag\n\n## Examples ##\n\nThere are examples in the [`examples/` directory](./examples). Here's a quick sketch:\n\n```go\npackage main\n\nimport (\n\t\"github.com/neomantra/ymdflag\"\n\t\"github.com/spf13/pflag\"\n)\n\nfunc main() {\n\tvar ymd ymdflag.YMDFlag\n\tpflag.VarP(\u0026ymd, \"date\", \"d\", \"YYYYMMDD date; defaults to today in local time\")\n\tpflag.Parse()\n\tprintln(\"time of date:\", ymd.AsTime().String())\n}\n```\n----\n\n## Credits and License\n\nCopyright (c) 2022-2023 Neomantra BV.  Authored by Evan Wies.\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%2Fymdflag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneomantra%2Fymdflag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomantra%2Fymdflag/lists"}