support different time units with ctime argument