{"id":19836491,"url":"https://github.com/guobinhit/timekit","last_synced_at":"2025-05-01T18:30:22.854Z","repository":{"id":150650887,"uuid":"619014697","full_name":"guobinhit/timekit","owner":"guobinhit","description":"♨️ A time toolkit written in Go.","archived":false,"fork":false,"pushed_at":"2024-05-06T03:24:01.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T16:40:44.446Z","etag":null,"topics":["date","format","now","parse","time"],"latest_commit_sha":null,"homepage":"https://guobinhit.github.io/timekit/","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/guobinhit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-26T02:11:37.000Z","updated_at":"2024-07-15T06:30:08.000Z","dependencies_parsed_at":"2023-09-21T11:07:59.870Z","dependency_job_id":null,"html_url":"https://github.com/guobinhit/timekit","commit_stats":null,"previous_names":["guobinhit/timekit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Ftimekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Ftimekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Ftimekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Ftimekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guobinhit","download_url":"https://codeload.github.com/guobinhit/timekit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924542,"owners_count":21665987,"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":["date","format","now","parse","time"],"created_at":"2024-11-12T12:11:30.824Z","updated_at":"2025-05-01T18:30:22.563Z","avatar_url":"https://github.com/guobinhit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timekit\n![author](https://img.shields.io/badge/author-chariesgavin-blueviolet.svg)[![Go](https://github.com/guobinhit/timekit/actions/workflows/go.yml/badge.svg)](https://github.com/guobinhit/timekit/actions/workflows/go.yml)![issues](https://img.shields.io/github/issues/guobinhit/timekit.svg)![stars](https://img.shields.io/github/stars/guobinhit/timekit.svg)![forks](https://img.shields.io/github/forks/guobinhit/timekit.svg)![license](https://img.shields.io/github/license/guobinhit/timekit.svg)\n\n# Contributing\n\nContributions are very welcome!\n\nIf you see a problem that you'd like to see fixed, the best way to make it happen is to help out by submitting a pull request implementing it. Refer to the [CONTRIBUTING.md](../master/CONTRIBUTING.md) file for more details about the workflow.\n\nYou can also ask for problem-solving ideas and discuss in GitHub issues directly.\n\n# Usage\n\nFirstly, download this pkg,\n\n```go\ngo get github.com/guobinhit/timekit\n```\n\nSecondly, use it.\n\n```go\nimport (\n    \"github.com/guobinhit/timekit\"\n)\n\n// Get a specified time by add days, such as d is 2022-04-13 10:20:30 and days is 10,\n// then aDate is 2022-04-23 10:20:30\naDate := timekit.GetTimeAddDays(time.Now(), 10)\n\n// Get a specified date format time string of common version, such as d is 2022-04-13 10:20:30,\n// then aString is \"2022-04-23 10:20:30\"\naString := timekit.FormatYyyyMmDdHhMmSs(time.Now())\n\n// Get a specified date format time string of china version, such as d is 2022-04-13 10:20:30,\n// then aString2 is \"2022年04月23日 10:20:30\", like FormatCnOfYyyyMmDdHhMmSs method, \n// FormatEnOfYyyyMmDdHhMmSs return \"2022/04/23 10:20:30\" and FormatCptOfYyyyMmDdHhMmSs return \"20220423102030\".\naString2 := timekit.FormatCnOfYyyyMmDdHhMmSs(time.Now())\n\n// Get a specified date format time, such as dStr is \"2022-04-13 10:20:30\",\n// then aTime is 2022-04-23 10:20:30\naTime, err := timekit.ParseYyyyMmDdHhMmSs(\"2022-04-13 10:20:30\")\n```\n\nFinally, good luck guys!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobinhit%2Ftimekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguobinhit%2Ftimekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobinhit%2Ftimekit/lists"}