misc time functions that are good to use with sunrise and sunset