Sleep synced to calendar

It would be cool if there was a setting where app would take your bedtime and your alarm time and create a sleep event that syncs with google calendar. It would be a nice feature that would be useful for people that like to have their entire day planned out.