获取网络时间的脚本

上一篇 / 下一篇  2012-03-14 16:05:52

  • 文件大小: 1 GB

function GetDateTime()

                Dim Currentdatetime

                Dim YY   'Year

                Dim MM   'Month

                Dim DD   'Day

                Dim HH 'Hour

                Dim Min  'MInute

                Dim SS   'Second

                Dim Nowstr

                Currentdatetime=now()

                YY=Year(Currentdatetime)

                MM=Month(Currentdatetime)

                If MM<10 Then

                                MM="0"&MM

                End If

                DD=Day(Currentdatetime)

                If DD<10 Then

                                DD="0"&DD

                End If

                HH=Hour(Currentdatetime)

                If HH<10 Then

                                HH="0"& HH

                End If

                Min=Minute(Currentdatetime)

                If Min<10 Then

                                Min="0"&Min

                End If

                SS=Second(Currentdatetime)

                If SS<10 Then

                                SS="0"&SS

                End If

                Nowstr=MM & DD & YY & HH & Min & SS

                GetDateTime=Nowstr

end function


TAG:

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 4993
  • 文件数: 13
  • 建立时间: 2011-11-30
  • 更新时间: 2012-04-14

RSS订阅

Open Toolbar