Registry / utility / lestrrat-go-strftime

lestrrat-go-strftime

JSON →
library1.1.1gogounverified

Package strftime provides strftime/strptime compatible time formatting and parsing for Go.

go get github.com/lestrrat-go/strftime
INSTALL
IMPORT
SIG · LESTRRAT-GO-STRFTI
L
lestrrat-go-strftime
utilitygov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

strftime
github.com/lestrrat-go/strftime

Formats current time using strftime pattern

package main import ( "fmt" "time" "github.com/lestrrat-go/strftime" ) func main() { t := time.Now() formatted, _ := strftime.Format("%Y-%m-%d", t) fmt.Println(formatted) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lestrrat-go-strftime — go get lestrrat-go-strftime · libregistry