timezone_version_get

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

timezone_version_get Obtiene la versión de la base de datos timezonedb

Descripción

timezone_version_get(): string

Devuelve la versión actual de timezonedb.

Valores devueltos

Devuelve un string.

Ejemplos

Ejemplo #1 Obtener la versión de timezonedb

<?php
echo timezone_version_get();
?>

El resultado del ejemplo sería algo similar a:

2009.7

add a note

User Contributed Notes 1 note

up
0
gwenbrod at gmail dot com
10 days ago
If the output of timezone_version_get() is "0.system", the documentation encourages to install the timezonedb PECL package. However, consider leaving it as is, because "0.system"indicates the operating system's tzdata database is being used, which is actually desirable, since the tzdata package gets updated by the operating system's package manager.
To Top