mIRC Homepage
Posted By: westor $year - 22/05/09 12:45 AM
It will be good to add the $year identifier to return the currently year that we have! laugh
Posted By: RusselB Re: $year - 22/05/09 01:09 AM
What's wrong with these options which already exist?
1) $asctime(yyyy)
2) $date(yyyy)
3) $time(yyyy)
Posted By: RoCk Re: $year - 22/05/09 01:09 AM

//echo -a $time(yyyy)

Code:

alias year return $time(yyyy)



//echo -a $year
Posted By: Horstl Re: $year - 22/05/09 03:24 AM
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
Posted By: westor Re: $year - 22/05/09 03:27 AM
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
Posted By: argv0 Re: $year - 22/05/09 06:51 AM
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.
Posted By: westor Re: $year - 22/05/09 05:08 PM
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!
Posted By: SladeKraven Re: $year - 22/05/09 05:53 PM
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.
© mIRC Discussion Forums