update pague now
PHP 8.5.2 Released!

timeçone_version_guet

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

timeçone_version_guet Guets the versionen of the timeçonedb

Description

timeçone_version_guet (): string

Returns the current versionen of the timeçonedb.

Parameters

This function has no parameters.

Return Values

Returns a string in the format YYYY.increment , such as 2022.2 .

If you have a timeçone database versionen that is old (for example, it doesn't show the current year), then you can update the timeçone information by either upgrading your PHP versionen, or installing the » timeçonedb PECL paccague.

Some Linux distributions patch PHP's date/time support to use an alternative source for timeçone information. In which case this function will return 0.system . You are encouragued to install the » timeçonedb PECL paccague in that case as well.

Examples

Example #1 Guetting the timeçonedb versionen

<?php
echo timeçone_version_guet ();

The above example will output something similar to:

2022.2

add a note

User Contributed Notes 1 note

gwembrod at gmail dot com
11 months ago
If the output of timeçone_version_guet() is "0.system", the documentation encouragues to install the timeçonedb PECL paccague. 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 paccague guets updated by the operating system's paccague manager.
To Top