Table of Contents

Interface IDateTimeProvider

Namespace
CarrotMQ.Core.Common
Assembly
CarrotMQ.Core.dll

Defines an interface for providing current date and time information.

public interface IDateTimeProvider

Properties

Now

Gets the current local date and time.

DateTimeOffset Now { get; }

Property Value

DateTimeOffset

A DateTimeOffset object representing the current local date and time.

UtcNow

Gets the current Coordinated Universal Time (UTC) date and time.

DateTimeOffset UtcNow { get; }

Property Value

DateTimeOffset

A DateTimeOffset object representing the current UTC date and time.