|
Date/Time Functions |
|
|
'Example Date Function DL.ClearCommWindows DL.AddComment Date ' prints the current system date.
'Example Time Function DL.ClearCommWindows DL.AddComment Time ' prints the current system time.
'Example Timer Function 'The Timer function returns the number of seconds that have elapsed 'since 12:00 AM (midnight). StartTime = Timer For i = 1 To 1000 Next DL.AddComment "Duration [milliseconds] = " & (Timer - StartTime) * 1000
'Example Now Function Dim MyVar MyVar = Now ' MyVar contains the current date and time.
'Example Day Function DL.AddComment Day(Now)
'Example Month Function DL.AddComment Month(Now)
'Example Year Function Dim MyDate MyDate = #December 7, 1968# ' Assign a date. DL.AddComment Year(MyDate)
'Example Hour Function DL.AddComment Hour(Now)
'Example Minute Function DL.AddComment Minute(Now)
'Example Second Function DL.AddComment Second(Now)
|