Conver time using Time.at function