View Full Version : time() am or pm
velious
02-20-2004, 05:59 PM
I'm trying to get my script to understand the difference between am and pm... here is the script:
function time()
if time() < 9 then 'how do i tell the code to be 9am or pm?
msgbox ("the time is less than 9")
else
msgbox ("the time is more than 9")
end if
end function
Mitch
02-20-2004, 06:07 PM
hmm.....what i think id do would make 2 check box's...one says am and the other says pm...
then say if check box 1 = true then add 12 hours to the original time...or if the second one is checked...dont add nething....
am i making ne sense?
lol...neways....yeah.....i dunno im on aim : W0TH if yuo need to me to explain more.
velious
02-20-2004, 06:18 PM
Mitch thats a good idea :) and i'll try that however I'd prefer if the program could be independant.
Mitch
02-20-2004, 06:31 PM
thanks.....well....it still will be independant...sort of....
I just would think that what I said would be what I would do since it would be easier...
Im not much on using timers, so if i were doing what you are doing, i would def. do it the easier less time consuming way. See, doing it like I said will take a couple of small non complex codes...doing it the other way...will take a long extremely complex code.
May I ask what kind of application your trying to code?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.