Top

Helper alias $now


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  May 20, 2009
Last Updated  May 20, 2009
Tags  alias  date  helper  now  time 

Description

I know this isn't much, but it is very helpfull, at least I think it is :) The syntax is really easy...

just do $now(type,<1-4>)[.o]

the o prop is optional and used to insert the oo in the date.

types = day,month,year

the N is how you want to display the result.

i.e:
$now(day,2) = 21
$now(day,2).o = 21st
$now(month,3) = May

and so on :)

Grab the Code

alias now {
  if ($1 == day) { return $iif($2 isnum,$asctime($ctime,$str(d,$v1) $+ $iif($prop, $iif($prop == o,oo)))) }
  elseif ($1 == month) { return $iif($2 isnum,$asctime($ctime,$str(m,$v1))) }
  elseif ($1 == year) { return $iif($2 isnum,$asctime($ctime,$str(y,$v1))) }
}

Comments

  (1)  RSS
jonesy44
Comments: 1,892
 
mIRC Snippet:  Helper alias $now
Posted on May 24, 2009 11:51 am
Not sure if i really am getting the point of this...

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom