ijt / go-anytime

Parse natural and standardized dates/times and ranges in Go without knowing the format in advance
MIT License
23 stars 2 forks source link

For time like 05:22, default to future, but got still past #67

Open Gostradamus opened 1 year ago

Gostradamus commented 1 year ago

It's expected to be 05:22 tomorrow, if current time passed 05:22, but it returns 05:22 today.

anytime.Parse(as, time.Now(), anytime.DefaultToFuture)
ijt commented 1 year ago

Can you tell me the values of as and time.Now()?