• Welcome to Valhalla Legends Archive.
 

FileTime & Such

Started by CrAz3D, March 09, 2004, 08:58 PM

Previous topic - Next topic

CrAz3D

I am getting the correct time back, it's just that when there is a single digit # in the, IE: SystemTime.wSecond like 04 then Len(ST.wSecond) = 2 but it doesn't display the 0 when I try to add ST.wSecond to something.
Call FileTimeToLocalFileTime(FT, FT)
           Call FileTimeToSystemTime(FT, ST)
           TIMEO = ST.wHour & ":" & ST.wMinute & ":" & ST.wSecond
           AddChat vbGreen, "Account Created: ", vbCrLf & &HC0C000, ST.wMonth & "/" & ST.wDay & "/" & ST.wYear, vbCrLf & vbRed, " @ ", vbCrLf & &HC0C000, TIMEO

I tried the TIMEO thing just to see if it would work differeently as a string, but it didn't.
Quote[7:58:11 PM] Account Created: 12/24/2003 @ 11:4[/u]:36
Notice the time & the single digit 4.

Help is appreciated, thnx
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

o.OV


Format(Time, "hh:mm:ss")
If the facts don't fit the theory, change the facts. - Albert Einstein

Eric

#2
Quote from: o.OV on March 09, 2004, 09:17 PM

Format(Time, "hh:mm:ss")

That doesn't work if you ever want to add miliseconds.

I already answered his question on AIM, but for future reference, use Format(ST.wHour, "00") for the hour, seconds, ect.

CrAz3D

rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

UserLoser.

Better yet:


Right$("0" & ST.wHour, 2)