Programming
Watch this threadPage 1 of 1
Skip to page:
zulhaq345
Badges:
8
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#1
Hazelly
Badges:
21
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#2
zulhaq345
Badges:
8
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#3
alongside it needs to meet these
Is there a functional way to schedule an ‘alarm’
Is there a functional way to cancel an ‘alarm’
Does the alarm code effectively use time and date data
Are alarms that have gone off get recorded in notifications
Can the alarm be easily repeated or set as a one off - 5 marks
0
reply
zulhaq345
Badges:
8
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#4
it has to be in python, could you help me please
Last edited by zulhaq345; 2 years ago
0
reply
winterscoming
Badges:
19
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#5
Report
#5
There's some good examples of using python's sched module here: https://pymotw.com/3/sched/ - try pasting some of those into your code editor and run the programs to get a feel for how the scheduler works, then try experimenting with 'enter' and 'enterabs'. .
(One very useful experiment to try would be to see what happens when you allow enter/enterabs to schedule a function that re-adds itself to the scheduler when it runs.)
The time library is a bit clunky, but also fairly simple/primitive as well - it works using the concept of 'seconds elapsed since the UNIX Epoch (01-01-1970)
https://docs.python.org/3/library/time.html or https://pymotw.com/3/time/
(One very useful experiment to try would be to see what happens when you allow enter/enterabs to schedule a function that re-adds itself to the scheduler when it runs.)
The time library is a bit clunky, but also fairly simple/primitive as well - it works using the concept of 'seconds elapsed since the UNIX Epoch (01-01-1970)
https://docs.python.org/3/library/time.html or https://pymotw.com/3/time/
0
reply
X
Page 1 of 1
Skip to page:
Quick Reply
Back
to top
to top