Click or drag to resize

MathUtilConvertUnits Method (Double, TimeUnit, TimeUnit)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Converts between two time units.

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

Parameters

input
Type: SystemDouble
Quantity of original time units.
input_type
Type: Telogis.GeoBaseTimeUnit
Original TimeUnit (such as HOUR).
output_type
Type: Telogis.GeoBaseTimeUnit
Desired TimeUnit (such as MINUTE).

Return Value

Type: Double
The input time units in output_type units.
Examples
The following code snippet converts 24 hours into minutes.
C#
ConvertUnits(24, HOUR, MINUTE);
See Also