Web Analytics Made Easy -
StatCounter time() am or pm - CodingForum

Announcement

Collapse
No announcement yet.

time() am or pm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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...

    Comment


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

      Comment


      • #4
        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...

        Comment

        Working...
        X