Skip to content

Commit

Permalink
Internal routing of method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Nov 3, 2023
1 parent e5fed31 commit 7d7848f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Skybrud.Essentials/Time/EssentialsTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,17 @@ public class EssentialsTime : IComparable, IComparable<EssentialsTime>, ICompara
/// <summary>
/// Gets whether the date of this <see cref="EssentialsTime"/> matches the current day.
/// </summary>
public bool IsToday => ToString("yyyy-MM-dd") == DateTime.Now.ToString("yyyy-MM-dd");
public bool IsToday => TimeUtils.IsToday(DateTimeOffset);

/// <summary>
/// Gets whether the date of this <see cref="EssentialsTime"/> matches the day after the current day.
/// </summary>
public bool IsTomorrow => ToString("yyyy-MM-dd") == DateTime.Now.AddDays(+1).ToString("yyyy-MM-dd");
public bool IsTomorrow => TimeUtils.IsTomorrow(DateTimeOffset);

/// <summary>
/// Gets whether the date of this <see cref="EssentialsTime"/> matches the day before the current day.
/// </summary>
public bool IsYesterday => ToString("yyyy-MM-dd") == DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
public bool IsYesterday => TimeUtils.IsYesterday(DateTimeOffset);

/// <summary>
/// Gets a string representation of the instance as specified by the <strong>ISO 8601</strong> format.
Expand Down

0 comments on commit 7d7848f

Please sign in to comment.