mIRC Home    About    Download    Register    News    Help

Print Thread
My brain ain't seem to be working this morning #205875 02/11/08 02:53 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
39755 = Nov 2 2008
39756 = Nov 3 2008
so fourth and so on

Is there a way to make a formula to know what the number values means vs. if I want to know what the date is?

1 = 1900-01-01
.
.
.
.
39755 = 2008-02-11 or (2008-11-02)


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: My brain ain't seem to be working this morning [Re: Lpfix5] #205876 02/11/08 03:33 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Code:
alias num2date return $asctime($calc(86400*$1 - 2209248000),yyyy-dd-mm)

$num2date(39755) -> 2008-02-11
$num2date(39753) -> 2008-31-10
$num2date(39756) -> 2008-03-11


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: My brain ain't seem to be working this morning [Re: qwerty] #205903 03/11/08 12:24 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Thanks dude.,


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }