Registry / utility / tj-go-naturaldate

tj-go-naturaldate

JSON →
library1.3.0gogounverified

Provides natural language date and time parsing for Go.

go get github.com/tj/go-naturaldate
INSTALL
IMPORT
SIG · TJ-GO-NATURALDATE
T
tj-go-naturaldate
utilitygov1.3.0
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.

naturaldate
github.com/tj/go-naturaldate

Parses a natural language date string like 'next friday'.

package main import ( "fmt" "github.com/tj/go-naturaldate" ) func main() { t, err := naturaldate.Parse("next friday", time.Now()) if err != nil { panic(err) } fmt.Println(t) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources