System.Net.WebClient wc = new System.Net.WebClient();
string lret = wc.DownloadString(" http://open.baidu.com/special/time/");
System.Text.RegularExpressions.Match mc = System.Text.RegularExpressions.Regex.Match(lret, @"window.baidu_time\(([0-9]{13})\);");
string sdt = mc.Value.Substring(18);
sdt = sdt.Substring(0, sdt.Length - 2);
long ldt = Convert.ToInt64(sdt) / 1000;
DateTime oritime = Convert.ToDateTime("1970-1-1 0:0:0");
oritime = oritime.AddSeconds(ldt).AddHours(8);
return oritime;
string lret = wc.DownloadString(" http://open.baidu.com/special/time/");
System.Text.RegularExpressions.Match mc = System.Text.RegularExpressions.Regex.Match(lret, @"window.baidu_time\(([0-9]{13})\);");
string sdt = mc.Value.Substring(18);
sdt = sdt.Substring(0, sdt.Length - 2);
long ldt = Convert.ToInt64(sdt) / 1000;
DateTime oritime = Convert.ToDateTime("1970-1-1 0:0:0");
oritime = oritime.AddSeconds(ldt).AddHours(8);
return oritime;