araddon / dateparse

GoLang Parse many date strings without knowing format in advance.
MIT License
2.03k stars 164 forks source link

Relative dates/times #115

Closed rendaw closed 3 years ago

rendaw commented 3 years ago

Sometimes dates like "today", "now", "yesterday", "3 days ago" come up in data sets and it would be useful to be able to parse these. Maybe a reference date could be set, similar to locale for local parsing?

gouguoyin commented 3 years ago

you can try go-carbon

araddon commented 3 years ago

same/similar https://github.com/araddon/dateparse/issues/12

rendaw commented 3 years ago

Oh yep, sorry! I searched but must have missed that.