Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Add DateTimeUtility.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-dev committed Jun 7, 2021
1 parent 462e507 commit 8052045
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Covid19Radar/Covid19Radar/Common/DateTimeUtility.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
namespace Covid19Radar.Common
{
public interface IDateTimeUtility
{
DateTime UtcNow { get; }
}
public class DateTimeUtility : IDateTimeUtility
{
public static IDateTimeUtility Instance = new DateTimeUtility();

public DateTimeUtility()
{
}

public DateTime UtcNow => DateTime.UtcNow;
}
}

0 comments on commit 8052045

Please sign in to comment.