changed strtime to string