示例#1
0
 public static DateTime SecToDateTime(this long sec)
 {
     return(TimeExtension.BaseTime.AddTicks(TimeExtension.SecToDateTimeTick(sec)));
 }
示例#2
0
 public static DateTime UsToDateTime(this long us)
 {
     return(TimeExtension.BaseTime.AddTicks(TimeExtension.UsToDateTimeTick(us)));
 }
示例#3
0
 public static DateTime MsToDateTime(this long ms)
 {
     return(TimeExtension.BaseTime.AddTicks(TimeExtension.MsToDateTimeTick(ms)));
 }
示例#4
0
 public static long DateTimeToUnixTimeUs(this DateTime thiz)
 {
     return(TimeExtension.DateTimeTickToUs((thiz - TimeExtension.BaseTime).Ticks));
 }