View Full Version : time() am or pm
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:
if time() < 9 then 'how do i tell the code to be 9am or pm?
msgbox ("the time is less than 9")
msgbox ("the time is more than 9")
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.
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.
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?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.