Click or drag to resize
ValidationHelperGetTimeSpan Method (Object, TimeSpan, CultureInfo)
Returns the TimeSpan representation of an object or default value if not.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static TimeSpan GetTimeSpan(
	Object value,
	TimeSpan defaultValue,
	CultureInfo culture = null
)

Parameters

value
Type: SystemObject
Value to convert
defaultValue
Type: SystemTimeSpan
Default value
culture (Optional)
Type: System.GlobalizationCultureInfo
Culture for the conversion

Return Value

Type: TimeSpan
See Also