int num = DateTime.Compare(DateTime.Now, DateTime.UtcNow);
if (num > 0)
{
text3 = "+";
}
else
{
text3 = "";
}
String errtime = "(GMT" + text3 + num.ToString() + ")";
-------------------------------
主要是DateTime.UtcNow 和"(GMT" + text3 + num.ToString() + ")"
在这里是什么做用
if (num > 0)
{
text3 = "+";
}
else
{
text3 = "";
}
String errtime = "(GMT" + text3 + num.ToString() + ")";
-------------------------------
主要是DateTime.UtcNow 和"(GMT" + text3 + num.ToString() + ")"
在这里是什么做用
if (num > 0)
{
text3 = "+";
}
else
{
text3 = "";
}
String errtime = "(GMT" + text3 + num.ToString() + ")";
Response.Write(errtime);
这个GMT时间的格式,有这样的 情况 ;
GMT
GMT-12
GMT + 1
零 , 当 t1 等于 t2。
大于零, 当 t1 大于 t2。