Friday, May 22, 2026
HomeLanguagesPHP | timezone_version_get() Function

PHP | timezone_version_get() Function

The timezone_version_get() function is an inbuilt function in PHP which is used to return the version of the timezone database. No parameters are required to be passed in the timezone_version_get() function.

Syntax:

string timezone_version_get()

Parameters: The timezone_version_get() function does not require any parameters.

Return Value: It returns the version of the timezone database as a string.

Exceptions The timezone_version_get() function produce the outputs 0.system because the PHP version hasn’t been upgraded.

Below program illustrate the timezone_version_get() function in PHP:

Program:




<?php
  
// Displaying the version of the timezone database
$timezone_db= timezone_version_get();
  
echo ("Timezone Database Version: " . $timezone_db );
?>


Output:

Timezone Database Version: 0.system

Reference: http://php.net/manual/en/function.timezone-version-get.php

RELATED ARTICLES

3 COMMENTS

Most Popular

Dominic
32514 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6892 POSTS0 COMMENTS
Nicole Veronica
12012 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12107 POSTS0 COMMENTS
Shaida Kate Naidoo
7016 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6975 POSTS0 COMMENTS
Umr Jansen
6963 POSTS0 COMMENTS