|
TimeConvertFrom Method
|
Converts the
value in the specified
sourceUnit to a new
Time in seconds.
Namespace: GSF.UnitsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntaxpublic 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
)
static member ConvertFrom :
value : float *
sourceUnit : TimeUnit -> Time
GSF.Units.Time.ConvertFrom = function(value, sourceUnit);
View SourceParameters
- value Double
- Source value.
- sourceUnit TimeUnit
- Source value units.
Return Value
TimeNew
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