Add time functions to core module