feat(api): Доделал респонс RobotTaskScheduleResponse
This commit is contained in:
20
PARR.BLL/Helpers/EsppScheduleHelpers.cs
Normal file
20
PARR.BLL/Helpers/EsppScheduleHelpers.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace PARR.BLL.Helpers
|
||||
{
|
||||
public static class EsppScheduleHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Получить дату первого старта в формате ЕСПП
|
||||
/// </summary>
|
||||
/// <param name="startDate"></param>
|
||||
/// <param name="time"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetFirstStart(DateOnly startDate, TimeSpan time)
|
||||
{
|
||||
var date = new DateTime(startDate.Year, startDate.Month, startDate.Day, time.Hours, time.Minutes, time.Seconds);
|
||||
|
||||
return date.ToString("dd/MM/yy HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user