mIRC Home    About    Download    Register    News    Help

Print Thread
Changing 24 hour time to 12 hour time #211070 02/04/09 09:41 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
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.

Re: Changing 24 hour time to 12 hour time [Re: seanturner70] #211073 02/04/09 09:49 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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

Re: Changing 24 hour time to 12 hour time [Re: seanturner70] #211074 02/04/09 10:43 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
there's also no such thing as </br>, although that's completely irrelevant to your problem.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Changing 24 hour time to 12 hour time [Re: seanturner70] #211092 03/04/09 03:22 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Thank you smile

<br></br> are so that everything takes a new line on the web smile

Re: Changing 24 hour time to 12 hour time [Re: seanturner70] #211095 03/04/09 06:11 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You should use <br />, not <br> or </br>

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

A
B
C

Re: Changing 24 hour time to 12 hour time [Re: hixxy] #211096 03/04/09 06:50 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
<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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Changing 24 hour time to 12 hour time [Re: argv0] #211110 04/04/09 12:12 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
It works smile

Thank you for the suggestions though smile