To retrieve a UNIX timestamp use time()
The mktime() function creates a UNIX time stamp based on integers for the hour, minute, second, month, day and year
The function strtotime() can be used to create timestamps between December 13 1901 and January 19 2038. The function accepts dates in the format 05 DEC 2012 and 12/05/2013
Returns an associate array of useful date / time information
Use the date() method to format output.
Headline format characters
Alternatively, use the strftime() method to format output.
Headline format characters