VirtualArray.ToTimeSpanArray(String) Method

Top 

Description

Converts the array of values to an array of TimeSpans using the specified units. The level of precision of the conversion to the TimeSpanArray is a function of the underlying units of the data stored in the Array.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

VirtualArray.ToTimeSpanArray(

String units)

 

 

Arguments

units


Description:

The units to use during conversion.

Valid Values:

Value

Label

"day"

days

"hr"

hours

"min"

minutes

"s"

seconds

 

 

 

 

Return Value

Type:

Array of timespan

Units:

day

 

 

Returns a TimeSpanArray object that contains the values of the Array in the specified units.

 

Syntax

myTimeSpanArray1 = {1,2,3,4}.ToTimeSpanArray(myString1);

 

 

See also

VirtualArray Object