File: time

package info (click to toggle)
ircii 20060725-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,648 kB
  • ctags: 3,794
  • sloc: ansic: 44,334; makefile: 1,091; sh: 524; perl: 127
file content (17 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#	$eterna: time,v 1.2 2001/08/12 15:57:12 mrg Exp $
#
# This will put the current time, date, etc according to your server
# in the approriate variables
alias servertime ^on ^391 * assign day $$2\;assign month $$3\;assign date $$4\;assign time $$7;^time;wait -cmd ^on ^391 -* $()

# This will get the time from the uptime program and put it in the 
# variable uptime
on ^exec uptime assign uptime $1
on ^exec_exit uptime
alias uptime exec -name uptime uptime;wait %uptime $()

# This will get the time, date, etc from the date program and
# put them in the appropriate variables.
on ^exec date assign day $1;assign month $2;assign date $3;assign time $4
on ^exec_exit date
alias datetime exec -name date date;wait %date $()