Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
24
bitchx-docs/5_Programming/on/timer
Normal file
24
bitchx-docs/5_Programming/on/timer
Normal file
@@ -0,0 +1,24 @@
|
||||
Synopsis:
|
||||
on [#][<mode>]timer [<serial#>] [-|^]<match> { <action> }
|
||||
|
||||
Description:
|
||||
This hook is triggered whenever the specified time (or time glob pattern)
|
||||
matches the current time. The time may be in one of two formats:
|
||||
|
||||
Format Description
|
||||
hh:mm<am|pm> 0 <= hh <= 12, 0 <= mm <= 59, am or pm set accordingly
|
||||
hh:mm 0 <= hh <= 23, 0 <= mm <= 59
|
||||
|
||||
Parameters:
|
||||
$0 current time (format depends on CLOCK_24HOUR setting)
|
||||
|
||||
Examples:
|
||||
To inform the user of the time once per hour on the hour:
|
||||
on ^timer "%:00*" {
|
||||
echo *** The time is not $Z
|
||||
beep
|
||||
}
|
||||
|
||||
See Also:
|
||||
set(4) clock_24hour
|
||||
|
||||
Reference in New Issue
Block a user