stuckyb / gcdl

6 stars 2 forks source link

dates interface documentation #69

Open stuckyb opened 2 years ago

stuckyb commented 2 years ago

We've recently overhauled the interface for specifying dates, and the new system needs to be explained in the user documentation. Here is an outline of all key details:

If dates is provided, the YMD date parameters will be ignored.

For the dates interface, leading 0s are optional in "MM" and "DD" strings. For example, 1980-01-01 and 1980-1-1 are both valid.

For the YMD interface, the last day in a month or year can be specified by using N instead of an integer. For example: 1,10,N, 1:N, 20:N.

Ranges are inclusive of their endpoints unless the endpoint does not correspond with the step size increment.

Date grain is inferred from the specificity of dates or, for the YMD parameters, as follows:

HeatherSavoy-USDA commented 2 years ago

Note: current documentation is still listing the '-' instead of ':' format for ranges