VirtualTimeSpanArray.ToArrayAsUnits(String) Method

Top 

Description

Converts the TimeSpanArray to an Array where the units of the elements are as specified. Because FreeFlyer Variables are internally stored as 64-Bit floating-point, precision may be lost in the conversion.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

VirtualTimeSpanArray.ToArrayAsUnits(

String units)

 

 

Arguments

units


Description:

The units with which to create the Array representation.

Valid Values:

Value

Label

"day"

days

"hr"

hours

"min"

minutes

"s"

seconds

"ms"

milliseconds

"us"

microseconds

"ns"

nanoseconds

 

 

 

 

Return Value

Type:

Array of number

 

 

The converted Array.

 

Syntax

myArray1 = {TimeSpan.FromDays(1), TimeSpan.FromDays(2)}.ToArrayAsUnits(myString1);

 

 

See also

VirtualTimeSpanArray Object