摘要: 日期时间脚本库方法列表Date.prototype.isLeapYear判断闰年Date.prototype.Format日期格式化Date.prototype.DateAdd日期计算Date.prototype.DateDiff比较日期差Date.prototype.toString日期转字符串Date.prototype.toArray日期分割为数组Date.prototype.DatePar... 阅读全文
posted @ 2010-08-17 17:10 itecho 阅读(464) 评论(1) 推荐(1) 编辑
摘要: public DateTime GetTime(string timeStamp) { DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); long lTime = long.Parse(timeStamp + "0000000"); TimeSpan toNow = new ... 阅读全文
posted @ 2010-08-17 12:03 itecho 阅读(758) 评论(0) 推荐(1) 编辑