Click or drag to resize

TimeSpanExtensionsGetSeconds Method

Retrieves the number of seconds expressed in a TimeSpan as an UInt32.

Namespace:  Couchbase.Utils
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public static uint GetSeconds(
	this TimeSpan timeSpan
)

Parameters

timeSpan
Type: SystemTimeSpan
The timespan.

Return Value

Type: UInt32
An UInt32 that is the total number of seconds in the TimeSpan.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TimeSpan. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also