摘要: 几天前买了本书《大话设计模式》,据说挺不错的。 以下是看书过程中的笔记 阅读全文
posted @ 2008-12-09 19:00 Joey[Lin] 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 最近经常用到的时间相关的处理,以下是网上找来的资料.稍微整理了一下. CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//定义一个时间类型 System.DateTime currentTime = new System.DateTim... 阅读全文
posted @ 2008-12-09 09:57 Joey[Lin] 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1. 时间相关处理 DateTime d1,d2; /*..给d1,d2赋值..*/ TimeSpan ts = d2 - d1; //使用TimeSpan可以获取2个时间相差的天数,小时,分,秒等 string str = ts.TotalDays.ToString(); ... 阅读全文
posted @ 2008-12-09 09:48 Joey[Lin] 阅读(170) 评论(0) 推荐(0) 编辑