Jason_liu

导航

2012年9月10日 #

C#模拟JS中的getTime()

摘要: //模拟JS中的Date.Gettime(); private long lLeft = 621355968000000000;//1970距0000的微秒数 //将数字变成时间 public string GetTimeFromInt(long ltime) { long Eticks = (long)(ltime * 10000000) + lLeft; DateTime dt = new DateTime(Eticks).ToLocalTime(); re... 阅读全文

posted @ 2012-09-10 20:58 Jason_liu 阅读(1063) 评论(0) 推荐(0) 编辑