Skip to content

DateTime.addInterval - how to handle irregular precision #276

Description

@smalers

Problem

The DateTime.addInterval method is used to increment the date/time. It may be called a specific number of times or be called in a loop to iterate over time. The addInterval method currently ignores the interval (precision) of IRREGULAR. If called in a loop, this could lead to an infinite loop. I changed the code in TSTool 15.2.0 to throw an exception for IRREGULAR and unrecognized interval. However, this causes ChangeInterval command tests to fail. I changed the code back so that IRREGULAR is ignored, but print a warning to the log file.

Actions

  • Need to study the code more to decide how best to handle irregular time series.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

SSize: day or lessenhancementhighPriority: next release if possible

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions