VirtualTimeSpan.RoundedToUnits(String) Method

Top 

Description

Returns the TimeSpan rounded to the specified units.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

VirtualTimeSpan.RoundedToUnits(

String units)

 

 

Arguments

units


Description:

The units with which to round.

Valid Values:

Value

Label

"day"

days

"hr"

hours

"min"

minutes

"s"

seconds

"ms"

milliseconds

"us"

microseconds

 

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

The value of the rounded TimeSpan.

 

Syntax

myTimeSpan1 = myTimeSpan2.Abs().RoundedToUnits(myString1);

 

 

See also

VirtualTimeSpan Object