home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ircii30.zip / script / time < prev    next >
Text File  |  1994-07-30  |  670b  |  16 lines

  1. # This will put the current time, date, etc according to your server
  2. # in the approriate variables
  3. alias servertime ^on ^391 * assign day $$2\;assign month $$3\;assign date $$4\;assign time $$7;^time;wait -cmd ^on ^391 -* $()
  4.  
  5. # This will get the time from the uptime program and put it in the 
  6. # variable uptime
  7. on ^exec uptime assign uptime $1
  8. on ^exec_exit uptime
  9. alias uptime exec -name uptime uptime;wait %uptime $()
  10.  
  11. # This will get the time, date, etc from the date program and
  12. # put them in the appropriate variables.
  13. on ^exec date assign day $1;assign month $2;assign date $3;assign time $4
  14. on ^exec_exit date
  15. alias datetime exec -name date date;wait %date $()
  16.