有没有办法让程序获得的是北京时间或者是网络时间
VB6中Print Date & Time出来的是电脑系统的日期时间,有没有办法让程序获得的是北京时间或者是网络时间。
前面论坛里有一个人发了相关的问题。你仔细找找。
他的办法是读百度的一个网页,然后得到服务器返回的时间来处理
[ 本帖最后由 风吹过b 于 2013-1-26 14:31 编辑 ]
程序代码:For Each linkels In doc.getElementsByName("time")
stime = Mid(linkels.outerHTML, 16, 8)
secstime = CInt(Right(stime, 2))
minstime = CInt(Mid(stime, 4, 2))
houstime = CInt(Left(stime, 2))
Time = houstime & ":" & minstime & ":" & secstime
Next