eDosStationFull/Testing/Program.cs

35 lines
1.1 KiB
C#
Raw Permalink Normal View History

2026-08-18 12:15:26 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Testing
{
class Program
{
static void Main(string[] args)
{
//2846034226
TimeSpan ts0 = TimeSpan.FromSeconds(2846034226);
DateTime d1 = new DateTime(1601, 1, 1,0,0,0);
DateTime d2 = new DateTime(1970, 1, 1);
DateTime d3 = new DateTime(2000, 1, 1,0,0,0);
TimeSpan ts1 = d2.Subtract(d1);
TimeSpan ts2 = d3.Subtract(d1);
System.Diagnostics.Debug.WriteLine($" 1970 {ts1.TotalSeconds}");
System.Diagnostics.Debug.WriteLine($" 2000 {ts2.TotalSeconds}");
//125911584000000000
//DateTime d4 = new DateTime(2022, 02, 19,2,49,38);
DateTime d4 = new DateTime(2000, 1, 1);
DateTime d5 = d4.AddSeconds(703076180);
DateTime d6 = d4.AddSeconds(-284603422);
DateTime d7 = d4.AddSeconds(-28460342);
DateTime d8 = d4.AddSeconds(-2846034);
}
}
}