Automatic sleep

Is it possible to automatically record a sleep record at the set time?