Documentation ¶
Overview ¶
Package pdr parses date range as string Uses pointlander/peg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRange ¶
ParseRange parses a human readable specified time range into two dates containing that range. start is included in the range, end is just beyond the range. So the returned dates/times are such that the range is start <= RANGE < end.
Also, ranges with a numeric factor are returned as if the current date is a part of the range specified. For instance, the "last two months" is the previous month and the current month. However, range without numeric factor excludes current month. Specifying "last month" returns just the range for that month.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.