HEC-DSS has several utility functions for time series data. Any time searching is used (as opposed to just reading), more resources are needed. So use the following functions wisely – don't call if you don't really need to. It is more efficient to read data, including data that doesn't exist and will be returned missing, than to search for it first.
HecTimeSeries:


//Returns the start and end time, units and type for a single DSS record (efficient).
public int getTSRecordInfo(String pathname, HecTime start, HecTime end, stringContainer units, stringContainer type);
JAVA


// Returns the start and end times for a full dataset, not just a single record. (requires more resources)
public boolean getTimeSeriesExtents(String pathname, HecTime start, HecTime end);
JAVA



public static int getIntervalFromEPart (String ePart);

JAVA