GitShow/tj/go-naturaldate
tj

go-naturaldate

Natural date/time parsing for Go.

by tj
datedatetimegolangnaturalnatural-language
Star on GitHubFork

Go

315 stars16 forks3 contributorsQuiet · 2y agoSince 2019MIT

Meet the team

See all 3 on GitHub →
tj
tj13 contributions
DanielHouston
DanielHouston1 contribution
sinchang
sinchang1 contribution

Languages

View on GitHub →
Go100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
71
✓README✓License✓Contributing○Code of Conduct✓Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 2y ago
See all on GitHub →
ernie
Relative dates by day name when day name == current day?OpenIssue

Use case is outlined at zk-org/zk/discussions/547 but the short version is: I found it surprising that if I ask for "monday" on a "monday", the "last monday" default gives me the Monday on the previous week, rather than "today". I'm wondering if this might be something others run into?

ernie · 1y ago
f01c33
Added common abbreviations for datesOpenPR

Hello, I've added common abbreviations to the grammar, now we can use

f01c33 · 2y ago
NightMachinery
Support "6 month" with the future directionOpenIssue

Prerequisites [x] I searched to see if the issue already exists. Description Also, it's very jarring that the parsing succeeds on these examples. I think these should throw an error, as they contain important keywords like that have been discarded.

NightMachinery · 3y ago

Recent fixes

View closed PRs →
ijt
migrate from PEG parser to go-parsify, rename from natural date to anytimeMergedPR
ijt · 3y ago
DanielHouston
Add 'Tomorrow' with similar options as 'Yesterday'ClosedIssue

Prerequisites [x] I searched to see if the issue already exists. Description I'd like to be able to specify relative dates in the near future as per the 'Yesterday' options Steps to Reproduce N/A

DanielHouston · 6y ago
DanielHouston
Add TomorrowMergedPR

Seems like the latest peg generates a file with two RuleIn definitions, which I had to manually remove after go generate. There also seems to be other non-trivial changes to the generated file. However, with the additional RuleIn definition removed, tests do pass. Depending on your thoughts, I am open to regenerating against a last known good version of peg before any merging

DanielHouston · 6y ago
Structured data for AI agents

Repository: tj/go-naturaldate. Description: Natural date/time parsing for Go. Stars: 315, Forks: 16. Primary language: Go. Languages: Go (100%). License: MIT. Topics: date, datetime, golang, natural, natural-language. Open PRs: 1, open issues: 6. Last activity: 2y ago. Community health: 71%. Top contributors: tj, DanielHouston, sinchang.

·@ofershap

Replace github.com with gitshow.dev