コード例 #1
0
        public static DateTimeUTC JavaTimeStampToDateTimeUTC(double java_time_stamp)
        {
            // Java timestamp is millisecods past epoch
            DateTimeUTC date_time = new DateTimeUTC(1970, 1, 1);

            return(date_time.AddSeconds(Math.Round(java_time_stamp / 1000)));
        }
コード例 #2
0
        public static DateTimeUTC UnixTimeStampToDateTimeUTC(double unix_time_stamp)
        {
            // Unix timestamp is seconds past epoch
            DateTimeUTC date_time = new DateTimeUTC(1970, 1, 1);

            return(date_time.AddSeconds(unix_time_stamp));
        }