Forum Discussion
Gordon_Johnston
Oct 16, 2005Nimbostratus
Date/Time sensitive iRules
Another question if I may.
How can I query the current time of day with an iRule. I'd like an iRule to apply at only certain times of the day, and rather than writing cron entries to update ...
JRahm
Oct 17, 2005Admin
use the clock command: http://tmml.sourceforge.net/doc/tcl/clock.html
set curtime [clock seconds]
set formattedtime [clock format $curtime]
log "$curtime seconds since epoch, $formattedtime"
The log entry looks like this:
1129552706 seconds since epoch, Mon Oct 17 07:38:26 CDT 2005
.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects