rawtime()

ICE Data Services -

 rawtime() Series Functions

The rawtime() function is used to create a Series Object of the rawtime values (number of seconds elapsed since 01/01/1970) or to retrieve individual rawtime values.

Syntax
rawtime( [ nBarIndex][, sym() | inv()] )

Parameters
Parameter: Description:Default:
nBarIndex [Optional]  Number of bar index of series to retrieve

n/asym() or
inv()
[Optional]  Function of sym() or inv() to determine source for rawtime values.

n/a
Return Value(s)
Returns a Series Object when
nBarIndex is not specified.

Returns a single value when nBarIndexis specified.

Notes
N/A

Code Examples
 ``function main() { //retrieve the value for the current price bar myVar = ``rawt``ime(``0``)``;```` //retrieve the value for the previous price bar myVar = ``rawt``ime(``-1``)``;```` //retrieve the current value for a specific symbol myVar = ``rawt``ime(``0``, ``sym("IBM") ``)``;```` //retrieve the current value for a specific symbol/interval myVar = ``rawt``ime(``0``, ``sym("IBM,5") ``)``;```` //retrieve the current value for a specific bar interval myVar = ``rawt``ime(``0``, ``inv(15)`` ``)``;```` //create a Series Object of the rawtime values. xRawtime = ``rawt``ime()``;```` //create a Series Object of the rawtime values for a specific symbol. xRawtime = ``rawt``ime(`` ``sym("IBM")`` ``)``;```` //create a Series Object of the rawtime values for a specific symbol/interval. xRawtime = ``rawt``ime(`` ``sym("IBM,5")`` ``)``;```` //create a Series Object of the rawtime values for a specific interval. xRawtime = ``rawt``ime(`` ``inv(15)`` ``)``; }``