Valhalla Legends Forums Archive | Battle.net Bot Development References | Can someone please help...

AuthorMessageTime
AnThRaXBoT
Can someone please help me get my damn time stamp to 12 hour time? I've tried multiple things and none of which seem to work...

Here is the code,
strTimeStamp = "[" & Format(Date, "mm/dd/yy") & " " & Format(Time, "hh:mm:ss") & "] "

I've tried switching the hh:mm:ss to HH:MM:SS and there is no difference, I've tried just using h:mm:ss and still nothing.

Thanks in advance!
December 18, 2002, 4:37 PM
erase
public sub timestamp()
AddChat "<", &H808080, Format(Time, "hh:mm:ss"), &H808080
AddChat ">", &H808080
end sub


usage:

Timestamp
AddChat user & " has entered the channel"
December 22, 2002, 1:25 PM
Grok
erase,

hope you don't mind a suggested upgrade in your solution.

[code]
Public Sub Timestamp()
   AddChat "<", &H808080, Format(Time, "HH:MM:SS AMPM"), &H808080
   AddChat ">", &H808080  
End Sub
[/code]
December 22, 2002, 4:33 PM

Search