add function unix_time for process the time into int