use time strptime and mktime to mathch the long int to the time