home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.madoka.org
/
2014.12.ftp.madoka.org.tar
/
ftp.madoka.org
/
pub
/
plum
/
2.x
/
plum2_15_2.lzh
/
module
/
ctcp
/
time.plm
< prev
next >
Wrap
Text File
|
1997-11-16
|
1KB
|
55 lines
# <!-- -*- perl -*-
# $Id: time.plm,v 2.1 1997/11/17 00:09:07 hasegawa Exp $
# copyright (c)1997 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package ctcp_time;
$CLIENTINFO = 'TIME';
$_ = 'ctcp_time';
sub cpss_time {
local($serverno, $prefix, $cmd, $msg) = @_;
local(@time, $nick, $wday, $month, $mday, $clock, $year);
@time = localtime(time());
$nick = &'prefix($prefix);
$wday = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat')[$time[6]];
$month = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')[$time[4]];
$mday = sprintf('%2d', $time[3]);
$clock = sprintf('%02d:%02d:%02d', @time[2, 1, 0]);
$year = sprintf('%04d', $time[5] + 1900);
&'s_print($serverno, '', 'NOTICE', $nick, "\cA" . join(' ', $cmd, $wday, $month, $mday, $clock, $year) . "\cA");
return ($prefix, $cmd, $msg);
}
__END__
--><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE> ctcp/time.plm </TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3> $BL>A0(B </H3>
ctcp/time.plm - CTCP TIME$B$KH?1~$7$F8=:_;~9o$rAw$k(B
<HR><H3> $B@bL@(B </H3>
CTCP TIME$B$,Aw$i$l$F$-$?$H$-!"$=$l$KH?1~$7$F8=:_;~9o$rAw$j$^$9!#(B
<HR><H3> $B%W%m%Q%F%#(B </H3>
<DL>
</DL>
<HR><H3> $B@_DjNc(B </H3>
<PRE>
+ ctcp/time.plm
</PRE>
</BODY></HTML>