mIRC Homepage
Posted By: seanturner70 Changing 24 hour time to 12 hour time - 02/04/09 09:41 PM
I currently have:
Code:
on *:TEXT:*:#gingers-kittens {
  if ($me == no-nick) {
    .write "C:\Documents and Settings\Sean's\My Documents\Web\mbf\index.php" <br> $asctime($calc($gmt - $duration(5hrs)),HH:nn dd.mm.yy)  $nick $+ : $1- </br>
  }
}  

Which goes to a file that gets uploaded to the internet...

However, it displays it like this:
Quote:
17:35 02.04.09 Flitters: BYEEEEEEEEEE


If there a way to make it display:
Quote:
5:35pm 02.04.09 Flitters: BYEEEEEEEEEE


Thanks in advance, I had a quick search and didn't find anything.
Posted By: Horstl Re: Changing 24 hour time to 12 hour time - 02/04/09 09:49 PM
Change
HH:nn dd.mm.yy
to
h:nntt dd.mm.yy

The different format parameters are explained in the helpfile at /help $asctime smile
Posted By: argv0 Re: Changing 24 hour time to 12 hour time - 02/04/09 10:43 PM
there's also no such thing as </br>, although that's completely irrelevant to your problem.
Thank you smile

<br></br> are so that everything takes a new line on the web smile
Posted By: hixxy Re: Changing 24 hour time to 12 hour time - 03/04/09 06:11 PM
You should use <br />, not <br> or </br>

A<br />B<br />C will show up as:

A
B
C
Posted By: argv0 Re: Changing 24 hour time to 12 hour time - 03/04/09 06:50 PM
<br/> is actually incorrect as well unless he's using XHTML 1.0 (which i doubt), otherwise <br> is fine, though technically speaking they will both work.
It works smile

Thank you for the suggestions though smile
© mIRC Discussion Forums