when icon indicating copy to clipboard operation
when copied to clipboard

A natural language date/time parser with pluggable rules

Results 18 when issues
Sort by recently updated
recently updated
newest added

Not sure why this is happening, but the following strings are yielding results that are a month off: ``` when.Parse("September 5th", time.Now()) => 2018-10-05 23:41:28.856911 -0700 PDT when.Parse("Sept. 5th", time.Now())...

Hi! I picked up `when` in a [quick project to file tasks into notion](https://github.com/crockeo/notion-cli), and it's been great so far! I'm glad I don't have to rewrite all of this...

zero out hour/minutes/seconds when working with 'today/tomorrow/yesterday'

Adds support for one of the examples listed [here](https://github.com/mojombo/chronic#examples).

It would be nice to be able to parse "2 hours" or "4 days" instead of _requiring_ the in/within, maybe it's a bit "noisy" but if it were possible via...

I took a stab at implementing the merge strategy for some rules. Is this how you you would like to have that implemented?

- [x] SlashMDY Fix: *Common US dates not working. #10*

`when` cannot parse dates with relative delta from some date: ```go gore> r, err := w.Parse("завтра в 12:00 поезд, напомни за час", time.Now()) &when.Result{ Index: 0, Text: "завтра в 12:00",...

Not getting a date back for standard U.S. format: "10/20" or "10/20/17". Getting a panic on "10/20/2017": ``` package main import ( "fmt" "os" "time" "github.com/olebedev/when" "github.com/olebedev/when/rules/common" "github.com/olebedev/when/rules/en" ) func...

Hi! Can you, please, add exact date rules for both languages? i.e. 25 april at 2.25pm and 25 апреля в 2.30 вечера