|
|
|
Joined: Apr 2004
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2004
Posts: 218 |
Topic seems self explanitory. I tested to see if these two identifiers (is that what they are?) existed. I got $null on both.
Hopefully these can be added to go along with the $day command?
Live to Dream & Dream for Life
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
alias year return $date(yyyy) alias month return $date(mmmm)
Why $day even exists i dont know, most likely it existed before $date's extentions did.
|
|
|
|
Joined: Apr 2004
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2004
Posts: 218 |
Making thing complicated now ;z would be alot easier for those scripting newbs to have $month & $year IMPO. Besides, it goes along with the $day, $month $day, $year. =) Now $date(mmmm) $day, $date(yyyy) just seems so complicated & and doesn't math in style. XD (scripting in style <3 Gotta love it. Make your codes look pretty for when you hand them out to people)
Live to Dream & Dream for Life
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
For June 14, 2005:
$date(mmmm dd yyyy) returns June 14 2005 $date(mmm dd yyyy) returns Jun 14 2005 $date(mm dd yy) returns 06 14 05 $date(ddd mmm dd yyyy) returns Tue Jun 14 2005 $date(dddd mmmm dd yyyy) returns Tuesday June 14 2005
Just as examples. You can add in formatting depending on what you like such as /'s or commas or periods or whatever.
Basically, 4 m's or d's spells out the month/day fully. 3 m's or d's gives a 3 character abbreviation of the month/day. 2 m's or d's gives a 2-digit numerical output (1 is output as 01). And using only one m or d will give a 1-digit or 2-digit numerical output depending on the number of digits in the day/month (1 is out as 1 and 10 is output as 10).
So, $month or $day or $year don't really make much sense since they can easily be put in with $date and $time to make for a quick and easy code.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
agreed, I would assume that $day is an old $identifier that well one day be stepped down, the idea of creating other identifiers to go along with it for "newbie scripters" to use would seem to be the wrong choice of direction.
|
|
|
|
Joined: Apr 2004
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2004
Posts: 218 |
Riamus2 - Wth? I'm not a newb. No need for explaining, if you wanted to do anything better could've just said /help $time
Live to Dream & Dream for Life
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Your the one who said "Now $date(mmmm) $day, $date(yyyy) just seems so complicated & and doesn't math in style"
He just showed you that, doing that would be wastefull as it could be accomplished with one command $date(mmmm yyyy)
Why no dddd ? becuase your one wont display it either due to the ,
$date(mmmm) $day $+ , $date(yyyy) vs $date(mmmm dddd $+ $chr(44) yyyy) or var %dateformat = mmmm dddd, yyyy $date(%dateformat)
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Putting aside your rude response...
I gave a detailed response rather than /help because a detailed response is a much nicer way to help someone. Saying to use /help for every reply is just being lazy. Now, to clarify that a bit, sometimes it is better to use /help as the format is more complex. However, for $date, giving examples is preferable in my opinion.
As far as you being a newbie, I figured you probably were not... but as DaveC pointed out, your suggestion of $day in that format was more confusing. A newbie would have an easier time with using $date, which is what I was trying to show.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 842 |
Just add these to aliases:
/month { return $asctime(mmmm) } /year { return $asctime(yyyy) }
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
hmmm good suggestion, another is to Just read in flatmode <snicker snciker>
|
|
|
|
|
|
|
|