Current number of seconds on the timer
Classes to handle a 24-hr time schedule. Covers the setting of * any number of slots, and testing whether a given time is in one of * the slots. The schedule class. Holds multiple timeslots.
Returns the seconds on the clock as a floating point number.
Set the style of class for the date display
Set the style of class for the time display
Set the format for the date display. This is just done by replacement in a format string where d=month date, M=month name, m=month no, cc=century, and yy=year (99). Eg. 'm d, ccyy' would give 'April 4, 2005'. Another example would be 'd/m/yy' which would render '4/4/05'.
Set a display property for the clock. Display property IDs are defined at the top of this script, and can be any type of content. NB: Boolean properties are so arranged that the default is always false.
Set the position and the positioning directive for the clock.
Set the timezone to use for this clock. The argument should be an integer (or decimal) in the range +12 to -12, in hours offset from GMT.
Set the 'today' date for the calendar. This is the date that is reset to when the user clicks on the 'TODAY' button. Of course it defaults to the current date when the calendar object is created, but this method allows for customised 'today' settings.
Special set timezone case - setting to GMT (0 hours offset).
Set the number of seconds to wait before updating the clock each time.
Set the starting visibility for the clock. In case you want to reveal/hide it with some javascript.
Set the starting and finishing year for the calendar - the range of operation. This defaults to +/-10 years around the current year.
Example: 12/31/1999 23:59:59
Start the timer. Starts the timer ticking. If it was already ticking then there is no change in status.
Stop the timer This freezes the internal seconds value, and stops the timer from ticking.