PHP date_default_timezone_set() Function
Complete PHP Date Reference
Definition and Usage
The date_default_timezone_set() function sets the default timezone used by
all date/time functions.
Syntax
|
date_default_timezone_set(timezone)
|
Tips and Notes
Note: This function always returns true (even if the timezone
parameter isn't valid).
Example
<?php
echo(date_default_timezone_set("Europe/Paris"));
?>
|
The output of the code above will be:
Complete PHP Date Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|