19 lines
422 B
C#
19 lines
422 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace IOB_UT_NEXT
|
|
{
|
|
public class TimeUtils
|
|
{
|
|
public static DateTime epochConvert(double epoch)
|
|
{
|
|
DateTime date = new DateTime(1970, 1, 1, 0, 0, 0, 0); //from start epoch time
|
|
date = date.AddSeconds(epoch);
|
|
return date;
|
|
}
|
|
}
|
|
}
|