strtotime

(PHP 4, PHP 5, PHP 7) Parse about any English textual datetime description into a Unix timestamp int strtotime ( string $time [, int $now = time() ] ) The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in now, or the current time if now is not supplied.

strptime

(PHP 5 >= 5.1.0, PHP 7) Parse a time/date generated with strftime() array strptime ( string $date, string $format ) strptime() returns an array with the date parsed, or FALSE on error. Month and weekday names and other language dependent strings respect the current locale set with setlocale() (LC_TIME). Parameters: date (string ) The string to parse (e.g. returned

strftime

(PHP 4, PHP 5, PHP 7) Format a local time/date according to locale settings string strftime ( string $format [, int $timestamp = time() ] ) Format the time and/or date according to locale settings. Month and weekday names and other language-dependent strings respect the current locale set with setlocale(). Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP's s

mktime

(PHP 4, PHP 5, PHP 7) Get Unix timestamp for a date int mktime ([ int $hour = date("H") [, int $minute = date("i") [, int $second = date("s") [, int $month = date("n") [, int $day = date("j") [, int $year = date("Y") [, int $is_dst = -1 ]]]]]]] ) Returns the Unix timestamp corresponding to the arguments given. This timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1 1970 00:0

microtime

(PHP 4, PHP 5, PHP 7) Return current Unix timestamp with microseconds mixed microtime ([ bool $get_as_float = false ] ) microtime() returns the current Unix timestamp with microseconds. This function is only available on operating systems that support the gettimeofday() system call. Parameters: get_as_float If used and set to TRUE, microtime() will return a float instead

localtime

(PHP 4, PHP 5, PHP 7) Get the local time array localtime ([ int $timestamp = time() [, bool $is_associative = false ]] ) The localtime() function returns an array identical to that of the structure returned by the C function call. Parameters: timestamp The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is

idate

(PHP 5, PHP 7) Format a local time/date as integer int idate ( string $format [, int $timestamp = time() ] ) Returns a number formatted according to the given format string using the given integer timestamp or the current local time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time(). Unlike the function date(), idate() accepts just one char in the format parameter.

gmstrftime

(PHP 4, PHP 5, PHP 7) Format a GMT/UTC time/date according to locale settings string gmstrftime ( string $format [, int $timestamp = time() ] ) Behaves the same as strftime() except that the time returned is Greenwich Mean Time (GMT). For example, when run in Eastern Standard Time (GMT -0500), the first line below prints "Dec 31 1998 20:00:00", while the second prints "Jan 01 1999 01:00:00". Parameters:

gmmktime

(PHP 4, PHP 5, PHP 7) Get Unix timestamp for a GMT date int gmmktime ([ int $hour = gmdate("H") [, int $minute = gmdate("i") [, int $second = gmdate("s") [, int $month = gmdate("n") [, int $day = gmdate("j") [, int $year = gmdate("Y") [, int $is_dst = -1 ]]]]]]] ) Identical to mktime() except the passed parameters represents a GMT date. gmmktime() internally uses mktime() so only times valid in derived local time can

gmdate

(PHP 4, PHP 5, PHP 7) Format a GMT/UTC date/time string gmdate ( string $format [, int $timestamp = time() ] ) Identical to the date() function except that the time returned is Greenwich Mean Time (GMT). Parameters: format The format of the outputted date string. See the formatting options for the date() function. timestamp The optiona