We normally convert long time to string of date and time using mktm() or mktime(). Is there anyway we can do the reverse? I want to convert string of date and time to long time. But I could not find any from the internet. For your info, long time means number of seconds from 01/01/1980 00:00:00.
For example, if long time 1045872000 convert to string time using mktm() or mktime() we can get 21/02/2013 00:00:00. Is there any function for reverse? Convert 21/02/2013 00:00:00 to 1045872000.