diff options
Diffstat (limited to 'pysamples/push_time.py')
-rw-r--r-- | pysamples/push_time.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pysamples/push_time.py b/pysamples/push_time.py index 2abf260..1945ca4 100644 --- a/pysamples/push_time.py +++ b/pysamples/push_time.py @@ -21,8 +21,13 @@ # This procedure is invoked when the user-definable block on the "extras" # palette is selected. +# Usage: Import this code into a Python (user-definable) block; when +# this code is run, the current hour, minute, and second are pushed to +# the FILO heap. To use these values, pop second, then minute, then +# hour from the FILO. -def myblock(lc, x): # ignore second argument + +def myblock(tw, x): # ignore second argument ########################################################################### # @@ -33,6 +38,6 @@ def myblock(lc, x): # ignore second argument # ########################################################################### - lc.heap.append(localtime().tm_hour) - lc.heap.append(localtime().tm_min) - lc.heap.append(localtime().tm_sec) + tw.lc.heap.append(localtime().tm_hour) + tw.lc.heap.append(localtime().tm_min) + tw.lc.heap.append(localtime().tm_sec) |