I think you would need a plugin to integrate it with the system clock properly, but it is possible from what I know!
As for changing the bed event, you can call "Open Save Screen" on the event page processing, and then "Return to Title Screen." :>