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:

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

Timezone Database Version: 0.system

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



My Personal Notes arrow_drop_up

I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.