summaryrefslogtreecommitdiff
path: root/CHANGES.md
blob: af0e7c5e4eec9647971bb4b6bdc20f7d00c95f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Change Log

## 2.1.0
* added since expressions: "since yesterday", "since the beginning of the month", "since the end of last year", "after midnight", ...
* added "the" as a synonym of "this" as a period modifier: "the beginning of the month" = "the beginning of this month"
## 2.0.0 *2020-3-7*
* fixing specific time to specific time pattern: "noon yesterday through midnight today"
* allow parsing of hours with leading 0; e.g., "08:57:29"
* added "month the nth" pattern -- "July the 4th", "November the Fifth"
* ***IMPORTANT*** changing the nature of daytimes -- "3 PM", "13:14" -- so their period is always 1 second; this seems
more intuitively correct to me, but it changes the semantics sufficiently that I thought it necessary to bump the major version number
## 1.3.4
* fixed panic when parsing "24"
## 1.3.3
* revert `ToString` to `&str` for greater efficiency
## 1.3.2
* removed serialized grammar as it made maintenance unwieldy
* added "payperiod" as another synonym for "pay period"
* adding bare "pay period" (also bear "week", "month", "year", and "weekend")
## 1.3.1
* documentation fix
## 1.3.0
* adding small_grammar feature to further speed up common use case
## 1.2.1
* bumpled lazy_static and pidgin dependencies
* use serialized matcher to avoid the cost of generating two_timer::GRAMMAR via the macro;
this cuts about 0.4 seconds off the startup time of two_timer on my machine, going from 0.85 seconds to 0.48 seconds
## 1.2.0
* added parsable function
## 1.1.0
* bumped lazy_static dependency
## 1.0.8
* made the space between time and AM/PM optional
## 1.0.7
* added `<specific_time>` pattern: e.g., 1969-05-06 12:03:05
## 1.06
* added "before and after"
* fixed "Friday the 13th" and "the 31st" to scan back through the calendar to the nearest match
## 1.0.5
* better organization and documentation of grammar
## 1.0.4
* added `<year>` pattern
* added ordinals for days of the month
* added kalends, nones, ides
* added March 5th, the fifth, Friday the 13th, etc.
* added period before/after/around time
* added noon and midnight
* added `<count>` `<periods>` from now/ago
## 1.0.3
* fixed "12 pm" bug
## 1.0.2
* added `msg` method to `TimeError`
## 1.0.1
* removing some documentation
## 1.0.0
* convert `Date<Utc>` and `DateTime<Utc>` everywhere to `NaiveDate` and `NaiveDateTime`
* added "weekend" for the expressions "this weekend", "last weekend", etc.
* don't require space between era suffix and year -- "100AD" is as good as "100 AD"