Click or drag to resize

TimeConvertFrom Method

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

Namespace: GSF.Units
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.242-beta+5de70bd1c87865d409ebc16b8886196644c0c750
Syntax
public static Time ConvertFrom(
	double value,
	TimeUnit sourceUnit
)
View Source

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