feat: Перенесены внешние сервисы в Infrastructure. Удалены лишние проекты.
This commit is contained in:
27
PARR.Core/Common/Helpers/EsppScheduleHelpers.cs
Normal file
27
PARR.Core/Common/Helpers/EsppScheduleHelpers.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace PARR.BLL.Helpers
|
||||
{
|
||||
public static class EsppScheduleHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Получить время создания наряда в формате ЕСПП
|
||||
/// </summary>
|
||||
/// <param name="date"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetGenerationTime(DateTimeOffset date)
|
||||
{
|
||||
return date.ToString("HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Получить следующее срабатывание в формате ЕСПП
|
||||
/// </summary>
|
||||
/// <param name="date"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextRun(DateTimeOffset date)
|
||||
{
|
||||
return date.ToString("dd/MM/yy HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user