摘要:
public static DateTime BytesToDateTime(byte[] bytes, int offset) { if (bytes != null) { long ticks = BitConverter.ToInt64(bytes, offset); if (ticks < DateTime.MaxValue.Ticks && ticks > DateTime.MinValue.Ticks) { DateTime dt = new DateTime(ticks); return dt; } } return new DateTime(); } 阅读全文
posted @ 2012-09-21 11:10
94cool
阅读(5235)
评论(0)
推荐(1)
浙公网安备 33010602011771号