Checks if a string can be converted to a time interval
Converts a string to seconds
Process the time-interval argument
Add application-specific command line arguments for the selecting a time interval
Validate the time-interval argument
Number of seconds in the day for creating day ranges.
Structure reoresenting a Timestamp interval
Handler for time interval CLI arguments
One Argument
Dates: Start is parsed inclusively, end is parsed exclusively eg. -t "2019-04-01 2019-04-02" (start: 2019-04-01 00:00:00) ( end: 2019-04-02 23:59:59)
TimeStamp Start is treated as is, end is NOT included in final range. eg. -t 100 200 = (begin: 100, end: 199)
Timerange End range includes the starting second. eg. -t 100 1m = (begin: 100, end: 159) eg. -t 1m 100 = (begin: 60, end: 99)
Intended Range Usage for ( long i = range.begin; i <= range.end; ++i )