sprite 1 sprite 30
functions-online

Date and Time

Execute and test PHP functions for date and time manipulation.

date

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

idate

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().

jdtounix

This function will return a Unix timestamp corresponding to the Julian Day given in $jday or FALSE if $jday is not inside the Unix epoch .

jewishtojd

Although this function can handle dates all the way back to the year 1 (3761 B.C.), such use may not be meaningful.

mktime

Returns the Unix timestamp corresponding to the arguments given. This timestamp is a long integer containing the number of seconds between the Unix Epoch and the time specified.

strftime

Returns a string formatted according to the given $format string using the given $timestamp or the current local time if no timestamp is given.

strptime

strptime() returns an array with the $date parsed, or FALSE on error.

strtotime

The function expects to be given a string containing a US English date format and will try to parse that format into a Unix timestamp.

unixtojd

Return the Julian Day for a Unix $timestamp (seconds since 1.1.1970), or for the current day if no $timestamp is given.