Forum Discussion
Tim_Moomaw_9220
Nimbostratus
Nov 09, 2008Scheduled Maintenance Window
--- Obligatory "I'm new to iRules" ----
I'm trying to create a rule to return a maintenance page every Saturday morning between 0200 and 0600. I have copied a few examples ...
hoolio
Cirrostratus
Nov 10, 2008You can change the format strings in clock to eliminate the leading zero. This prevents expr from interpreting the numbers as octal values.
So if you replace %H with %k:
Hour in 24-hour format, without leading zeros (0 - 23).
Per the clock man page (Click here), it doesn't look like there is an option for minutes without the leading zero. You could manually strip them using string trimleft:
string trimleft 0000123 0
123
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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