Click or drag to resize

TimeSpanExtensions Class

[Missing <summary> documentation for "T:Couchbase.Utils.TimeSpanExtensions"]

Inheritance Hierarchy
SystemObject
  Couchbase.UtilsTimeSpanExtensions

Namespace:  Couchbase.Utils
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public static class TimeSpanExtensions

The TimeSpanExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetSeconds
Retrieves the number of seconds expressed in a TimeSpan as an UInt32.
Public methodStatic memberToTtl(TimeSpan)
Converts a TimeSpan into an uint correctly representing a Time-To-Live, that is expressed in seconds. Durations strictly bigger than 30 days are converted to a unix-syle timestamp (seconds since the Epoch), as described in the couchbase TTL documentation.
Public methodStatic memberToTtl(UInt32)
Converts a duration expressed as milliseconds to a unix-based TTL.
Top
See Also