Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

TIME SHIFT( DATA,SHIFT) SHIFTs data in TIME

Scroll Prev Top Next More

Returns data that is shifted in time.  The TIME SHIFT function allows manipulation of the time axis of data.  If, for example, you want the model to see the data in the future, you would shift the data by a positive amount.  The second argument is measured using Time as the Time Base, regardless of the Time Base used to input the raw data.

Restrictions: TIME SHIFT must directly follow the colon equal := sign.   It is only valid in data equations.  The SHIFT argument must be a number or a constant; other model variables are not valid.  The DATA argument must be a single variable name, and cannot be an expression. TIME SHIFT cannot be combined with any other function.

Units:TIME SHIFT(units,time) --> units (i.e., the units of the first argument are attained, the second argument has the same units as time)

Example

sales next month := TIME SHIFT(sales data,1)

allows a glimpse into the future of sales.

Availability: Not PLE or PLE Plus.

 

See also: GET DATA AT TIME, GET DATA BETWEEN TIMES

Sample model: TIME SHIFT.mdl in FunctionExamples