Beispiel #1
0
        public static void TestDateTime()
        {
            DateTime dt = DateTime.Now;


            long ltm = CUtilTime.GetUnixTimestampMillis(dt) + 1;


            if (ltm != null)
            {
                System.Threading.Thread.Sleep(0);
            }

            DateTime dt2 = CUtilTime.DateTimeFromUnixTimestampMillis(ltm);



            if (CUtilTime.IsEqualTimesMillisAcc(dt, dt2))    //(DateTime.Equals(dt,dt2))//(dt == dt2)
            {
                System.Threading.Thread.Sleep(0);
            }
        }