jQuery.timeRule is an alternative to running your own timers in the browser, clogging up resources with useless functions.
So instead of starting a timer for functions that need to run in five minutes and then managing the timer for five minutes (with browser resources), you can use a much simpler method.
Developers can check the current GMT time, calculate the end of the timer, and execute the function at that time.
So basically jQuery.timeRule allows developers to actually work with time and not timers, spare resources for other tasks, and speed up the website's overall responsiveness.
The included functions are:
$.timeRule.getDay() - return proper name for current day
$.timeRule.getMonth() - returns proper name for current month
$.timeRule.getDate() - returns today's date as integer
$.timeRule.getYear() - returns this year as integer
$.timeRule.getHour() - returns this hour as integer
$.timeRule.getMin() - returns this minute as integer
$.timeRule.getSec() - returns this second as integer
$.timeRule.getAmPm() - returns capitalized AM or PM
What is new in this release:
- Works with jQuery 1.3.
- Initial release, proof of concept.
Requirements:
- JavaScript enabled on client side
- jQuery 1.3 or higher
Comments not found