DateTime st1 = new DateTime(2009,3,1,10,16,0 );
DateTime st2 = new DateTime(2009,3,2,12,15,0 ); TimeSpan temoTS = (TimeSpan)st2.Subtract(st1);if ( ( temoTS.Days >0 ) || ( temoTS.Days * 24 + temoTS.Hours) > 4
{
..
}但是temoTS.Days是0,temoTS.Hours的小时数字也不对啊请大家看看
DateTime st2 = new DateTime(2009,3,2,12,15,0 ); TimeSpan temoTS = (TimeSpan)st2.Subtract(st1);if ( ( temoTS.Days >0 ) || ( temoTS.Days * 24 + temoTS.Hours) > 4
{
..
}但是temoTS.Days是0,temoTS.Hours的小时数字也不对啊请大家看看
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货