Date Filtering


Date Filtering

Some list based actions support data filtering parameter startDate and endDate as indicated in the Reference. This describes in more detail what that means.

  • getCommitList - based on the data the commit was made

  • runFromCommitList - based on the data the commit was made

Parameters:

  1. startDate - Earliest date to get data. 

  2. endDate - Latest date for data. Default to now (most recent).

The dates should be specified to match the dateFormat parameter. If not provided, the local default format will be tried. The CLI also tries (release 4.3 and higher) some standard default formats like: yyyy-MM-dd HH:mm:ss

Special Values

The date fields support some special values to make range selection easier:

Value

Scale

Description

Resolution

today

day

  • Use for startDate to retrieve all entries for the current day.

Date only

-1d, -2d, ...

day

  • Use for startDate and/or endDate.

  • Use to indicate days back from today's date. 

  • For instance, setting startDate to -1d will get data for yesterday.

Date only

-1h, -2h, ...

hour

  • Use for startDate and/or endDate.

  • Use to indicate hours back from now. 

  • For instance, setting startDate to -24h will get data for the last 24 hours.

Date and time

-30m, -90m, ...

minute

  • Use for startDate and/or endDate.

  • Use to indicate minutes back from now.

  • For instance, setting startDate to -30m will get data for the last 30 minutes.

Date and time

-30s, ...

seconds

  • Use for startDate and/or endDate.

  • Use to indicate seconds back from now.

Date and time

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.