![]() | TimeSpanExtensions Methods |
The TimeSpanExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GetSeconds |
Retrieves the number of seconds expressed in a TimeSpan as an UInt32.
|
![]() ![]() | ToTtl(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.
|
![]() ![]() | ToTtl(UInt32) |
Converts a duration expressed as milliseconds to a unix-based TTL.
|