2023-02-25 14:53:58 +00:00
|
|
|
namespace InnovEnergy.Lib.Time.Unix;
|
2023-02-16 12:57:06 +00:00
|
|
|
|
2023-03-20 12:25:19 +00:00
|
|
|
public static class UnixTimeSpanExtensions
|
2023-02-16 12:57:06 +00:00
|
|
|
{
|
|
|
|
public static UnixTimeSpan Seconds(this Int32 s) => UnixTimeSpan.FromSeconds(s);
|
|
|
|
public static UnixTimeSpan Minutes(this Int32 m) => UnixTimeSpan.FromMinutes(m);
|
|
|
|
public static UnixTimeSpan Hours (this Int32 h) => UnixTimeSpan.FromHours (h);
|
|
|
|
public static UnixTimeSpan Days (this Int32 d) => UnixTimeSpan.FromDays (d);
|
|
|
|
public static UnixTimeSpan Weeks (this Int32 w) => UnixTimeSpan.FromWeeks (w);
|
|
|
|
|
|
|
|
public static UnixTimeSpan Seconds(this UInt32 s) => UnixTimeSpan.FromSeconds(s);
|
2023-08-15 13:02:41 +00:00
|
|
|
public static UnixTimeSpan Minutes(this UInt32 m) => UnixTimeSpan.FromMinutes(m);
|
|
|
|
public static UnixTimeSpan Hours (this UInt32 h) => UnixTimeSpan.FromHours (h);
|
|
|
|
public static UnixTimeSpan Days (this UInt32 d) => UnixTimeSpan.FromDays (d);
|
|
|
|
public static UnixTimeSpan Weeks (this UInt32 w) => UnixTimeSpan.FromWeeks (w);
|
2023-02-16 12:57:06 +00:00
|
|
|
}
|