{"id":44333757,"url":"https://github.com/imperfectgo/go-strftime","last_synced_at":"2026-02-11T10:37:14.739Z","repository":{"id":55628090,"uuid":"128748539","full_name":"imperfectgo/go-strftime","owner":"imperfectgo","description":" High performance C99-compatible strftime formatter for Go.","archived":false,"fork":false,"pushed_at":"2020-12-17T02:58:59.000Z","size":42,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-21T03:34:28.060Z","etag":null,"topics":["golang","strftime"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imperfectgo.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}},"created_at":"2018-04-09T09:36:47.000Z","updated_at":"2024-05-17T16:47:20.000Z","dependencies_parsed_at":"2022-08-15T04:50:42.111Z","dependency_job_id":null,"html_url":"https://github.com/imperfectgo/go-strftime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imperfectgo/go-strftime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperfectgo%2Fgo-strftime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperfectgo%2Fgo-strftime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperfectgo%2Fgo-strftime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperfectgo%2Fgo-strftime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imperfectgo","download_url":"https://codeload.github.com/imperfectgo/go-strftime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperfectgo%2Fgo-strftime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"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","strftime"],"created_at":"2026-02-11T10:37:13.994Z","updated_at":"2026-02-11T10:37:14.735Z","avatar_url":"https://github.com/imperfectgo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-strftime\n\n[![GoDoc](https://godoc.org/github.com/imperfectgo/go-strftime?status.svg)](https://godoc.org/github.com/imperfectgo/go-strftime)\n[![Build Status](https://travis-ci.org/imperfectgo/go-strftime.svg?branch=master)](https://travis-ci.org/imperfectgo/go-strftime)\n[![Go Report Card](https://goreportcard.com/badge/github.com/imperfectgo/go-strftime)](https://goreportcard.com/report/github.com/imperfectgo/go-strftime)\n[![Coverage](https://codecov.io/gh/imperfectgo/go-strftime/branch/master/graph/badge.svg)](https://codecov.io/gh/imperfectgo/go-strftime)\n\nHigh performance C99-compatible `strftime` formatter for Go.\n\n## Caveats\n\n**EXPERIMENTAL** Please test before use.\n\n## Compatibility\n\n| Specifier |                                   Description                                    |\n| :-------: | -------------------------------------------------------------------------------- |\n|   `%a`    | abbreviated weekday name (Sun)                                                   |\n|   `%A`    | full weekday name (Sunday)                                                       |\n|   `%b`    | abbreviated month name (Sep)                                                     |\n|   `%B`    | full month name (September)                                                      |\n|   `%c`    | the same as time.ANSIC (%a %b %e %H:%M:%S %)                                     |\n|   `%C`    | (year / 100) as number. Single digits are preceded by zero (20)                  |\n|   `%d`    | day of month as number. Single digits are preceded by zero (21)                  |\n|   `%D`    | equivalent to %m/%d/%y (09/21/14)                                                |\n|   `%e`    | day of month as number. Single digits are preceded by a blank (21)               |\n|   `%f`    | microsecond as a six digit decimal number, zero-padded on the left (001234)      |\n|   `%F`    | equivalent to %Y-%m-%d (2014-09-21)                                              |\n|   `%g`    | last two digits of ISO 8601 week-based year                                      |\n|   `%G`    | ISO 8601 week-based year                                                         |\n|   `%h`    | same as %b                                                                       |\n|   `%H`    | the hour (24 hour clock) as a number. Single digits are preceded by zero (15)    |\n|   `%I`    | the hour (12 hour clock) as a number. Single digits are preceded by zero (03)    |\n|   `%j`    | the day of the year as a decimal number. Single digits are preced by zeros (264) |\n|   `%m`    | the month as a decimal number. Single digits are preceded by a zero (09)         |\n|   `%M`    | the minute as a decimal number. Single digits are preceded by a zero (32)        |\n|   `%n`    | a newline (\\n)                                                                   |\n|   `%p`    | AM or PM as appropriate                                                          |\n|   `%P`    | am or pm as appropriate                                                          |\n|   `%r`    | equivalent to %I:%M:%S %p                                                        |\n|   `%R`    | equivalent to %H:%M                                                              |\n|   `%S`    | the second as a number. Single digits are preceded by a zero (05)                |\n|   `%t`    | a tab (\\t)                                                                       |\n|   `%T`    | equivalent to %H:%M:%S                                                           |\n|   `%u`    | weekday as a decimal number, where Monday is 1                                   |\n|   `%U`    | week of the year as a decimal number (Sunday is the first day of the week)       |\n|   `%V`    | ISO 8601 week of the year                                                        |\n|   `%w`    | the weekday (Sunday as first day of the week) as a number. (0)                   |\n|   `%W`    | week of the year as a decimal number (Monday is the first day of the week)       |\n|   `%x`    | equivalent to %m/%d/%Y                                                           |\n|   `%X`    | equivalent to %H:%M:%S                                                           |\n|   `%y`    | year without century as a number. Single digits are preceded by zero (14)        |\n|   `%Y`    | the year with century as a number (2014)                                         |\n|   `%z`    | the time zone offset from UTC (-0700)                                            |\n|   `%Z`    | time zone name (UTC)                                                             |\n\n## Performance\n\nComparision with the standard library `time.(*Time).Format()`:\n\n```\n\u003e go test -tags bench -bench Bench -cpu 4 -benchmem .\n\ngoos: darwin\ngoarch: amd64\npkg: github.com/imperfectgo/go-strftime\nBenchmarkStdTimeFormat-4         3844191               315 ns/op              32 B/op          1 allocs/op\nBenchmarkGoStrftime-4            4354848               274 ns/op               0 B/op          0 allocs/op\nPASS\nok      github.com/imperfectgo/go-strftime      3.013s\n```\n\nComparision with other libraries:\n\n```\n\u003e go test -tags benchcomp -bench Bench -cpu 4 -benchmem .\n\ngoos: darwin\ngoarch: amd64\npkg: github.com/imperfectgo/go-strftime\nBenchmarkImperfectGo-4                   2713639               445 ns/op              64 B/op          1 allocs/op\nBenchmarkImperfectGoNoAlloc-4            3081366               389 ns/op               0 B/op          0 allocs/op\nBenchmarkTebeka-4                         311500              3930 ns/op             256 B/op         19 allocs/op\nBenchmarkJehiah-4                         712195              1709 ns/op             256 B/op         17 allocs/op\nBenchmarkFastly-4                        1934066               615 ns/op              80 B/op          5 allocs/op\nBenchmarkLestrrat-4                      1000000              1037 ns/op             240 B/op          3 allocs/op\nBenchmarkLestrratCachedString-4          2415724               498 ns/op             128 B/op          2 allocs/op\nPASS\nok      github.com/imperfectgo/go-strftime      10.332s\n```\n\n## License\n\nThis project can be treated as a derived work of time package from golang standard library.\n\nLicensed under the Modified (3-clause) BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimperfectgo%2Fgo-strftime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimperfectgo%2Fgo-strftime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimperfectgo%2Fgo-strftime/lists"}