Browse Groups

• ## Re: [NTO] javascript date notation

(4)
• NextPrevious
• ... Oh! key-script is this: if(uur==0){ap= AM ;uur=12} else if(uur = 13){ap= PM ;uur-=12}
Message 1 of 4 , Aug 2, 2010
View Source
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.
--
• 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
View Source
I know nothing about Java, but shouldn't this be "...uur=-12..." ??

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

cheers,
Derek

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

-----Original Message-----
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.
--

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

[Non-text portions of this message have been removed]
• 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 1 of 4 , Aug 3, 2010
View Source
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.
--