tj

go-naturaldate

Natural date/time parsing for Go.

by tj

Go

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 · 2 in progress · Last activity 2y ago
See all on GitHub →
CubicrootXYZ

Prerequisites [x] I searched to see if the issue already exists. Description Add a new method that truncates the parsed part of the inputed string and returns the rest. E.g. if I input a new method should return the datetime and the string

CubicrootXYZ · 1mo ago
SashaMIT

Parse("february", January 31) returned March 3. "1 month from now" on that day did the same. "1 year from now" on February 29 returned March 1. time.Date and AddDate normalize a missing day into the next month, and the parse still succeeded. The day now stays on the last day of the target month. January 31, 2024 plus one month is still February 29. February 29, 2020 plus four years is still February 29, 2024. Days that already fit, including the existing November 25 cases, are unchanged. No existing issue.

SashaMIT · 1mo ago
ernie

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
DanielHouston

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: 17. Primary language: Go. Languages: Go (100%). License: MIT. Topics: date, datetime, golang, natural, natural-language. Open PRs: 2, open issues: 6. Last activity: 2y ago. Community health: 71%. Top contributors: tj, DanielHouston, sinchang.