go-dateparser icon indicating copy to clipboard operation
go-dateparser copied to clipboard

Period is not very precise as a confidence level

Open goodevilgenius opened this issue 2 years ago • 0 comments

A lot of the relative date names have a Period of Day, even though they're more precise than that.

For example, "today" and "now" return the same time, both with a period of Day, even though "now" is reasonable as a more precise time.

This makes it difficult to gauge the precision of the given date string.

For times such as "now" or "five hours ago", I would suggest that Time is a reasonable Period to use.

Or, another period between Time and Day would be useful, such as Second, Minute, or Hour.

goodevilgenius avatar Feb 12 '24 02:02 goodevilgenius