Scripting > Math Functions


Shift Time Series in Time

shiftInTime(string timeShiftString)

 

Shift the times in the current time series data set by the amount specified with timeShiftString.  The data set may be regular or irregular interval time series data.  Data set values are unchanged.

 

timeShiftString has the form “nT”, where “n” is an integer number and “T” is “M”(inute), “H”(our),  “D”(ay), “W”(eek), “Mo”(nth),or “Y”(ear).  Only the first character is significant for “T”, except for “Month”, which requires at least two characters.

 

Parameters:

timeShiftString – A string specifying the time increment to shift times in the current time series data set.

Example: TsShifted = tsData.shiftInTime(“3H”)

Returns: A new TimeSeriesMath object.