PHP Tutorial Set the Date_default_timezone_set function ()
Definition and usage
The Date_default_timezone_set () function sets the default time zone for all date/time functions used in the script.
GrammarDate_default_timezone_set (TimeZone)
$
After obtaining the time through the date () function, it is found that the hour time is incorrect, which is 8 hours less than the current time. Both H and h are the same, this is because the Greenwich Mean Time is obtained, which is 8 hours
Set the Beijing time function date_default_timezone_set () in the php Tutorial ()Definition and usageThe date_default_timezone_set () function is used to set the default time zone of all date/time functions in the
Php sets the Beijing time function date_default_timezone_set (). In the php Tutorial, set the definition and usage of the Beijing time function date_default_timezone_set () to the default time zone of all date and time functions in the script.
Set the Beijing time function date_default_timezone_set () in the php tutorial ()Definition and usageThe date_default_timezone_set () function is used to set the default time zone of all date/time functions in the script.
SyntaxDate_default_timezone_
Datedate represents a specific moment, accurate to milliseconds. Before JDK1.1, date has two other functions. It allows you to interpret dates as year, month, day, hour, minute, and second values. It also allows formatting and parsing of date
Some time ago, want to use the real machine debugging time appears
The account ' * * * ' has a no team with ID ' * * * ' problem,
Before the page really debugging, no such situation, so I landed in the developer center, found that
MySQL always returns a problem, 8 hours earlier than the actual time. Check that there is a problem with the time zone configured in the URL of the JDBC connection,
This week explains "UTC and jst".There is a time difference between the countries on the Earth. However, the Internet is a global network, and the data transmission across borders is frequent. As a result, servers on the internet need a common
A, date () function
string Date (string $format [, int $timestamp])Function: Formats the timestamp as an easy-to-read time and date.
Parameters
Description
Format
Necessary. Specifies
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.