TimeConvertFrom Method

Converts the value in the specified sourceUnit to a new Time in seconds.

Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
public static Time ConvertFrom(
	double value,
	TimeUnit sourceUnit
)

Parameters

value  Double
Source value.
sourceUnit  TimeUnit
Source value units.

Return Value

Time
New Time from the specified value in sourceUnit.

Remarks

When converting from Ticks, precision loss will occur for values that are outside the range of -2^52 and 2^52.

See Also