change time to milisec