mIRC Home    About    Download    Register    News    Help

Print Thread
#212398 22/05/09 12:45 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
It will be good to add the $year identifier to return the currently year that we have! laugh


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #212401 22/05/09 01:09 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
What's wrong with these options which already exist?
1) $asctime(yyyy)
2) $date(yyyy)
3) $time(yyyy)

westor #212402 22/05/09 01:09 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

//echo -a $time(yyyy)

Code:

alias year return $time(yyyy)



//echo -a $year

RoCk #212416 22/05/09 03:24 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Would be a mere convenience.
But why shouldn't it be one? From a minimalistic point of view, only $asctime is needed. $day can for example be made with $asctime(dddd). Yet we have $day, $time, $date, etc. - $year wouldn't hurt either. smile

RoCk #212417 22/05/09 03:27 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
yes but this dosen't mean something, The $day is the same but exists and it could be good to exists and the $year identifier!

e.g: //echo -s Example: $time(dddd) - $day


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Horstl #212428 22/05/09 06:51 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
What about $month $hour $minute $second $ampm?

It's a slippery slope.

$day really stands out of the bunch you mentioned. I can't imagine $day is used by itself in scripts that often (how many times do you just need: "/msg # You came here on $day"?), whereas a default formatting for a full $time and $date is indeed useful quite often. For that reason I wouldn't group $time and $date with $day.

IMHO, I don't even really think $day is justified, so saying we should have $year because we already have $day doesn't really convince *me*, anyway. It doesn't convince me because of the first sentence of my post.

If $year were to be added, most of the others would probably need to be added too, to be consistent. Otherwise we'll have this same discussion with $month in a $asctime(yyyy) from now.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #212437 22/05/09 05:08 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Why not man these identifiers will be very helpful, I say my opinion that is good to be added and $month too and i thing these identifiers will not be an mIRC problem to be added!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #212438 22/05/09 05:53 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
If you want it so badly use the above methods, I wouldnt hold your breath about this being added, I'm sure its probably been suggested before and if anything $day should be taken out and used with $asctime if its needed.


Link Copied to Clipboard