Module timer
source code
timer INTERVAL
Generates a sequence of timestamps, separated in time by the specified
INTERVAL
(approximately). The INTERVAL
format
is:
HH:MM:SS
where HH
is hours, MM
is minutes,
SS
is seconds. HH:
and HH:MM:
may
be omitted.
Examples:
INTERVAL meaning
-----------------------------
5 5 seconds
1:30 1 minute, 30 seconds
1:00:00 1 hour
The output timestamp is a tuple, matching what is returned by
time.gmtime()
and time.localtime()
: (year,
month, day of month, hour, minute, second, day of week, day of year,
dst).
Notes:
-
month is 1-based (January = 1, February = 2, ...)
-
day of month is 1-based.
-
second can go as high as 61 due to leap-seconds.
-
day of week is 0-based, Monday = 0.
-
day of year is 1-based.
-
dst is 1 if Daylight Savings Time is in effect, 0 otherwise.
|
timer(interval)
Generates a sequence of timestamps, separated in time by the
specified interval (approximately). |
source code
|
|
Generates a sequence of timestamps, separated in time by the specified
interval (approximately). The interval format
is HH:MM:SS , where HH is hours, MM
is minutes, SS is seconds. HH: and
HH:MM: may be omitted.
|