Ejemplo n.º 1
0
 public static DateTime?GetDateTime(this byte[] bytes, int startIndex)
 {
     if ((bytes.Length - startIndex) >= 8)
     {
         var rtc    = bytes.GetInt32(startIndex);
         var offset = bytes.GetInt32(startIndex + 4);
         return(DateTimeExtension.GetDateTime(rtc, offset));
     }
     return(null);
 }
Ejemplo n.º 2
0
        public static byte[] GetRtcBytes(this DateTime datetime, byte[] offSet)
        {
            var offset = offSet.GetInt32(0);

            return(DateTimeExtension.GetRtcBytes(datetime, offset));
        }