change FromEpoch function to take ms since epoch instead of seconds