Please Help With Simple Hour/Minute Code
Posted: Sun Jul 24, 2016 10:15 pm
Hi All,
I'm very bad at coding and have just been getting by coping sections of other users PDEs that I think will work for me. Can someone show me how to use minutes with the hour or tell me if this is even possible. I've tried searching on here and Google but I haven't found a solution. I would like to perform a task between 7:15 and 7:30 for example. This is what I currently have.
It compiles but doesn't seem to work correctly. I would like to keep it close to the hour format so I don't have to redo my entire sketch but I can make changes if necessary. ANY input or feedback will be greatly appreciated.
Thanks,
Tori
I'm very bad at coding and have just been getting by coping sections of other users PDEs that I think will work for me. Can someone show me how to use minutes with the hour or tell me if this is even possible. I've tried searching on here and Google but I haven't found a solution. I would like to perform a task between 7:15 and 7:30 for example. This is what I currently have.
Code: Select all
if (hour(t)>=1715 && hour(t)<1730)
Thanks,
Tori