implemented TIME function: finished