diff --git a/src/MfGames.Nitride.Temporal/TimeService.cs b/src/MfGames.Nitride.Temporal/TimeService.cs index 3d30142..baedd71 100644 --- a/src/MfGames.Nitride.Temporal/TimeService.cs +++ b/src/MfGames.Nitride.Temporal/TimeService.cs @@ -28,6 +28,16 @@ public class TimeService /// public IClock Clock { get; set; } + /// + /// Gets the current date time. + /// + public DateTime CurrentDateTime => this.ToDateTime(this.CurrentInstant); + + /// + /// Gets the current instant. + /// + public Instant CurrentInstant => this.Clock.GetCurrentInstant(); + /// /// Gets or sets the date time zone used for processing. ///