惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
爱范儿
爱范儿
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
Jina AI
Jina AI
Project Zero
Project Zero
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
Simon Willison's Weblog
Simon Willison's Weblog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tenable Blog
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
月光博客
月光博客
雷峰网
雷峰网
G
Google Developers Blog
V
V2EX
T
Tor Project blog
罗磊的独立博客
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Scott Helme
Scott Helme
I
Intezer
T
Threat Research - Cisco Blogs
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LINUX DO - 最新话题
N
News | PayPal Newsroom
L
Lohrmann on Cybersecurity
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Latest news
Latest news
AWS News Blog
AWS News Blog
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 溺水妖精

连载暂时停止,因为要打官司^^在这里谢谢各位的支持啦! 徒给别人做嫁衣——与人共同创业(1) 好久没来了^^来看看,顺便整理一下我这几年的经历 那年的那一场雪 写给未来的孩子-----孩子不要怨恨,不要气馁,每个人都有自己的无奈,每个人都有受伤的时候,学会宽容,学会忍耐,学会善待自己和他人..... 好久没来写什么东西了:(鄙视下自己~~ 打开一个应用程序~~ - 溺水妖精 - 博客园 5555~~~晕了晕了~~~object类型的相等问题~~~ - 溺水妖精 - 博客园 刚才在博客堂看到的:( 今天从HELLO,WORLD开始! 55555555~~今天夸下海口,不学C#都不行了~~ 最近好倒霉哦!!!!!!!555555555555555555555555 下午没有什么事情,就做了个数值统计直方图,好玩,哈 今天是妇女节,一定要去采购,女人用的东西都打折:) 蓝冰 MYSQL和MSSQL修改密码总结----在此感谢一直帮助我的J9988大叔 一个男人的话 随想----真的是断翼天使~~ 周末了,好幸福哦!!!HOHO~~~~~~~~~~~~~~~~~~~~~
学习笔记1
溺水妖精 · 2004-03-24 · via 博客园 - 溺水妖精

刚在MSDN看了篇文章

Determining the Span Between Two Dates

Example

DateTime oldDate = new DateTime(2002,7,15);
DateTime newDate = DateTime.Now;

// Difference in days, hours, and minutes.
TimeSpan ts = newDate - oldDate;
// Difference in days.
int differenceInDays = ts.Days;

Console.WriteLine("Difference in days: {0} ", differenceInDays);看了些例子,发现什么都要NEW才可以用:(,真麻烦
日期间的间距要这样才可以得出来,麻烦哦。
int differenceInDays = ts.Days;得出两个日期间相差的天数,
int diffhour= ts.Hours;得出的却不是两个日期间相差的总小时数differenceInDays*24,而是不考虑日期,直接对时间进行比较,现在是18点,他得出的结果会是18。好奇怪哦
分钟就也是如此~~

~~做个记号~~明天再接着找我心中疑问的答案