Click or drag to resize
ValidationHelperGetTimeSpanSystem Method
Returns the TimeSpan representation of an object (using English representation of date and time) or default value if not.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static TimeSpan GetTimeSpanSystem(
	Object value,
	TimeSpan defaultValue
)

Parameters

value
Type: SystemObject
Value to convert
defaultValue
Type: SystemTimeSpan
Default value

Return Value

Type: TimeSpan
See Also