MathUtilUnitsToSeconds Method | |
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
)
Public Shared Function UnitsToSeconds (
time As Double,
input_type As TimeUnit
) As Double
Parameters
- time
- Type: SystemDouble
The quantity of the time units. - input_type
- Type: Telogis.GeoBaseTimeUnit
The type of time units.
Return Value
Type:
DoubleThe seconds equivalent of
timeinput_types. See example.
Exceptions Examples The following code snippet converts 24 hours into seconds.
UnitsToSeconds(24, HOUR);
See Also