mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 15:18:02 -04:00
20 lines
684 B
C#
20 lines
684 B
C#
// -----------------------------------------------------------------------
|
|
// <copyright file="SystemTimeProvider.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.Shared.Providers.Time;
|
|
|
|
/// <summary>
|
|
/// Default time provider that uses the system clock.
|
|
/// </summary>
|
|
public class SystemTimeProvider : ITimeProvider
|
|
{
|
|
/// <summary>
|
|
/// Gets current time in UTC.
|
|
/// </summary>
|
|
public DateTime UtcNow => DateTime.UtcNow;
|
|
}
|