lib/util/time: Merge time functions from source3/lib/time.c