Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: time() am or pm

  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    California
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question time() am or 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

  • #2
    New Coder
    Join Date
    Feb 2004
    Location
    Virginia
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Umm...dude?
    Hell just broke loose...

  • #3
    Regular Coder
    Join Date
    Jun 2003
    Location
    California
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Mitch thats a good idea and i'll try that however I'd prefer if the program could be independant.

  • #4
    New Coder
    Join Date
    Feb 2004
    Location
    Virginia
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    Umm...dude?
    Hell just broke loose...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •