void gosleep(date time, bool havework)
C++:
-
{
-
if (havework && time->hour> 25) {
-
if (self->cantsleep){
-
// TODO: implement algorithm for forcesleep()
-
}else {
-
shutdown();
-
}
-
}
-
}
