Click or drag to resize

MathUtilUnitsToSeconds Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Converts a given quantity of TimeUnits to its seconds equivalent.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static double UnitsToSeconds(
	double time,
	TimeUnit input_type
)

Parameters

time
Type: SystemDouble
The quantity of the time units.
input_type
Type: Telogis.GeoBaseTimeUnit
The type of time units.

Return Value

Type: Double
The seconds equivalent of timeinput_types. See example.
Exceptions
ExceptionCondition
UnexpectedArgumentExceptionThrown when the input_type TimeUnit is not recognized.
Examples
The following code snippet converts 24 hours into seconds.
C#
UnitsToSeconds(24, HOUR);
See Also