TimeSpanArray.WithUnits(String) Method

Top 

Description

Changes the reporting units of the TimeSpanArray. The values of each member TimeSpan will be unaffected.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpanArray.WithUnits(

String units)

 

 

Arguments

units


Description:

The reporting units to use.

Valid Values:

Value

Label

"day"

days

"hr"

hours

"min"

minutes

"s"

seconds

"ms"

milliseconds

"us"

microseconds

"ns"

nanoseconds

 

 

 

 

Return Value

Type:

Array of timespan

Units:

day

 

 

When reported, returns the values of the member TimeSpan objects expressed in the specified units.

 

Syntax

myTimeSpanArray1 = myTimeSpanArray2.WithUnits(myString1);

 

 

See also

TimeSpanArray Object

TimeSpans Guide

Parsing Dates and Times