Quiet Hours (credit CyanogenMod) [Framework part]