TimeConvertFrom Method
Converts the
value in the specified
sourceUnit to a new
Time in seconds.
Namespace: Gemstone.UnitsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static Time ConvertFrom(
double value,
TimeUnit sourceUnit
)
Public Shared Function ConvertFrom (
value As Double,
sourceUnit As TimeUnit
) As Time
public:
static Time ConvertFrom(
double value,
TimeUnit sourceUnit
)
Gemstone.Units.Time.ConvertFrom = function(value, sourceUnit);
- value Double
- Source value.
- sourceUnit TimeUnit
- Source value units.
TimeNew
Time from the specified
value in
sourceUnit.
When converting from
Ticks, precision loss will
occur for values that are outside the range of -2^52 and 2^52.