fix bug in UnixTimeSpanExtensions.cs

This commit is contained in:
ig 2023-08-15 15:02:41 +02:00
parent bfb1670d11
commit 970ae10799
1 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ public static class UnixTimeSpanExtensions
public static UnixTimeSpan Weeks (this Int32 w) => UnixTimeSpan.FromWeeks (w); public static UnixTimeSpan Weeks (this Int32 w) => UnixTimeSpan.FromWeeks (w);
public static UnixTimeSpan Seconds(this UInt32 s) => UnixTimeSpan.FromSeconds(s); public static UnixTimeSpan Seconds(this UInt32 s) => UnixTimeSpan.FromSeconds(s);
public static UnixTimeSpan Minutes(this UInt32 m) => UnixTimeSpan.FromSeconds(m); public static UnixTimeSpan Minutes(this UInt32 m) => UnixTimeSpan.FromMinutes(m);
public static UnixTimeSpan Hours (this UInt32 h) => UnixTimeSpan.FromMinutes(h); public static UnixTimeSpan Hours (this UInt32 h) => UnixTimeSpan.FromHours (h);
public static UnixTimeSpan Days (this UInt32 d) => UnixTimeSpan.FromHours (d); public static UnixTimeSpan Days (this UInt32 d) => UnixTimeSpan.FromDays (d);
public static UnixTimeSpan Weeks (this UInt32 w) => UnixTimeSpan.FromDays (w); public static UnixTimeSpan Weeks (this UInt32 w) => UnixTimeSpan.FromWeeks (w);
} }