Получение списка задач для Хоста по Ip
This commit is contained in:
15
PARR.API/Extensions/GeneralExtensions.cs
Normal file
15
PARR.API/Extensions/GeneralExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace PARR.API.Extensions
|
||||
{
|
||||
public static class GeneralExtensions
|
||||
{
|
||||
public static DateTimeOffset EndOfDay(this DateTimeOffset date)
|
||||
{
|
||||
return new DateTimeOffset(date.Year, date.Month, date.Day, 23, 59, 59, 999, new TimeSpan(0));
|
||||
}
|
||||
|
||||
public static DateTimeOffset StartOfDay(this DateTimeOffset date)
|
||||
{
|
||||
return new DateTimeOffset(date.Year, date.Month, date.Day, 0, 0, 0, 0, new TimeSpan(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user