date.tcl 384 B

12345678910111213141516
  1. # date.tcl
  2. #set date "/usr/bin/date"
  3. #global date
  4. #proc show_date { nick host hand chan arg } {
  5. # puthelp "PRIVMSG $chan :[clock format [clock seconds]]"
  6. #}
  7. #bind pub - !date show_date
  8. proc show_date { nick host hand chan arg } {
  9. set date_format "%a %b %d %H:%M:%S %Z %Y"
  10. puthelp "PRIVMSG $chan :[clock format [clock seconds] -format $date_format]"
  11. }
  12. bind pub - !date show_date