Loading ...
Sorry, an error occurred while loading the content.

Re: [NTO] javascript date notation

Expand Messages
  • derek_barnes@mail.com
    I know nothing about Java, but shouldn t this be ...uur=-12... ?? else if(uur = 13){ap= PM ;uur-=12} cheers, Derek ... From: Adrien Verlee
    Message 1 of 4 , Aug 3, 2010
    • 0 Attachment
      I know nothing about Java, but shouldn't this be "...uur=-12..." ??

      else if(uur >= 13){ap=" PM";uur-=12}


      cheers,
      Derek


      ==========================


      -----Original Message-----
      From: Adrien Verlee <adrien.verlee@...>
      To: ntb-OffTopic@yahoogroups.com
      Sent: Mon, Aug 2, 2010 10:18 pm
      Subject: Re: [NTO] javascript date notation


      Op 2-aug-10, om 11:10 heeft Adrien Verlee het volgende geschreven:

      > I can change to 24, but counts are not properly after AM or PM.


      Oh! "key-script" is this:

      if(uur==0){ap=" AM";uur=12}
      else if(uur <= 11){ap=" AM"}
      else if(uur == 12){ap=" PM";uur=12}
      else if(uur >= 13){ap=" PM";uur-=12}
      if(min <= 9){min="0"+min}

      It must be logic, but can't see it.
      --
      Adrien





      ------------------------------------

      Yahoo! Groups Links







      [Non-text portions of this message have been removed]
    • Adrien Verlee
      Op 3-aug-10, om 09:01 heeft derek_barnes@mail.com het volgende ... A fresh look does wonders. To be sure, I have to wait for 12 hours. But change everything to
      Message 2 of 4 , Aug 3, 2010
      • 0 Attachment
        Op 3-aug-10, om 09:01 heeft derek_barnes@... het volgende
        geschreven:

        > I know nothing about Java, but shouldn't this be "...uur=-12..." ??
        >
        > else if(uur >= 13){ap=" PM";uur-=12}

        A fresh look does wonders.
        To be sure, I have to wait for 12 hours. But change everything to 00
        is the solution, it seems.

        Thank you.
        --
        Adrien
      Your message has been successfully submitted and would be delivered to recipients shortly.