solution:
on *:ctcpreply:*time*:{
.msg %chan $+ %timenick $+ \'s time and date: ( $+ $2- $+ ) | unseT %timenick
}
on *:TEXT:!time*:#:{
if ($2 == $null) { notice $Nick choose a nickname please. | halt }
if ($2 !ison $chan) { notice $Nick Sorry, but $2 $+ is not on $chan $+ . | halt }
else {
if ($2 ison $chan) {
set %Timenick $2
set -u10 %chan $v2
.ctcp $2 time
}
}
}