daily mode schedule_function

Makes schedule_function work in daily mode and removes the errors related to using schedule_function in daily mode.
The tests work by randomly sampling datetimes and checking the rules against them. as the restriction was 'artificial', I think the testing might still be sufficient.