functions-online

Date and Time

Execute and test PHP functions for date and time manipulation.

date

Restituisce una stringa formattata in accordo con il formato della stringa usato nell' intero $timestamp o nell'attuale orario locale se $timestamp non è assegnato.

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

Unlike the function date(), idate() accepts just one char in the $format parameter.

jdtounix

Questa funzione restituisce un timestamp Unix corrispondente al Giorno Giuliano $jday o FALSE se $jday non all'interno della gamma Unix (anni Gregoriani tra il 1970 e il 2037 o 2440588 <= $jday <= 2465342 ). L'ora restituita locale (e non GMT).

jewishtojd

Anche se questa funzione pu gestire date fino all'anno 1 (3761 B.C.), questo utilizzo potrebbe non avere senso. Il calendario Giudeo usato da parecchie migliaia di anni, ma nei primi tempi non c'era una formula per stabilire l'inizio del mese. Il nuovo mese iniziava quando si vedeva la prima volta la luna.

mktime

Restituisce la Unix timestamp corrispondente all'argomento dato. Questa timestamp è un intero lungo contenente il numero di secondi tra la Unix Epoch (January 1 1970) e la data e orario specificati.

strftime

Restituisce una stringa formattata in accordo con la stringa del formato data usando il parametro dato timestamp o l'attuale orario locale se non è stato dato il timestamp. I nomi di mesi e giorni della settimana e le altre stringhe dipendenti dalla lingua rispettano le attuali impostazioni locali con setlocale().

strptime

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

strtotime

La funzione aspetta di avere una stringa contenente un formato di data in Inglese e proverà a passare questo formato all'UNIX timestamp relativo al timestamp dato in $now, o l'attuale orario se non è stato passato il parametro. Sul fallimento, è restituito -1.

unixtojd

Restituisce il Giorno Giuliano di un $timestamp Unix (secondi dal 1/1/1970), o del giorno corrente se $timestamp non specificato.