Show / Hide Table of Contents

Class TimestampExtensions

Extends Timestamp type.

Inheritance
object
TimestampExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Diagnostics
Assembly: DotNext.dll
Syntax
public static class TimestampExtensions

Methods

View Source

IsFuture(Timestamp, TimeProvider)

Gets a value indicating that the current timestamp represents the future point in time.

Declaration
public static bool IsFuture(this Timestamp ts, TimeProvider provider)
Parameters
Type Name Description
Timestamp ts
TimeProvider provider

The time provider.

Returns
Type Description
bool

true if the current timestamp represents the future point in time; otherwise, false.

View Source

IsPast(Timestamp, TimeProvider)

Gets a value indicating that the current timestamp represents the past point in time.

Declaration
public static bool IsPast(this Timestamp ts, TimeProvider provider)
Parameters
Type Name Description
Timestamp ts
TimeProvider provider

The time provider.

Returns
Type Description
bool

true if the current timestamp represents the past point in time; otherwise, false.

  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾