One, view and modify the time zone of Linux 1. View current time zoneCommand: "Date-r"2. Modify the setup Linux Server time zone method ACommand: "Tzselect"Method B is limited to Redhat Linux and CentOSCommand: "Timeconfig"Method C applies to
System Environment: ubuntu10.041. Common time types under Linuxtime_t, struct TM, struct timeval, struct TIMESPEC1.1 time_t Time TypeThe time_t type is defined in Time.h:typedef long time_t;Visible, time_t is actually a long integer type. Its value
1.Date Object IntroductionA Date object has multiple constructors.NewDate ()NewDate (milliseconds)new date (datestring) new date (year, month) new date (year, month, day) new date (year, month, day, hours) new date
In Linux systems, there are many occasions where timestamps are used to represent time, that is, the number of days or seconds from January 1, 1970 onwards. such as the password change date and expiration date in/etc/shadow, as well as the access
JS Time zone function:Set Datename to a Date object created====================Datename.gettimezoneoffset ()--Gets the difference between local time and GMT time (GMT) and returns the value in minutes====================For example: Obtain GMT time
We tend to do a variety of optimizations on the server for caching settings, but we rarely notice
Client Cache, which is exactly the caching mechanism of the browser.
In fact, each browser has a caching policy, will temporarily cache each of the
PHP Instance gzip Transfer page
The code is as follows
Copy Code
Can be used for static resources and HTML pages, which are also suitable for other languagesCache Expiration Time (Cache-control, http1.1), recommended for
One, view and modify the time zone of Linux 1. View current time zoneCommand: "Date-r"2. Modify the setup Linux Server time zone method ACommand: "Tzselect"Method B is limited to Redhat Linux and CentOSCommand: "Timeconfig"Method C applies to
This article provides a detailed analysis of PHP and browser cache. For more information, see the various optimization solutions on the server.
Client CacheTo be precise, it is the browser cache mechanism.
In fact, each browser has a cache policy,
The GetSystemTime function obtains the current UTC time, Getlocaltime gets the current local timeUTC is an abbreviation for Coordinated Universal Time (Universal time coordinated), which is defined and recommended by the International Radio Advisory
We often optimize cache settings on servers, but we seldom notice thatClient CacheTo be precise, it is the browser cache mechanism.In fact, each browser has a cache policy, which temporarily caches each browsed file in a special folder. When you
This article mainly introduces the PHP date function and PHP time function, has a certain reference value, now share to everyone, the need for friends can refer to
One:The checkdate () function validates a date.Checkdate (Month,day,year)If the
When backing up files in embedded Linux, when the backup, the PC (Win7) and the Development Board time is 9:30, but the Development Board found that the file creation time is 9:30, and then the U disk inserted on the PC (Win7), found that the file
Debian: Use LocaltimeZONE-Debian information for the Linux release. For more information, see. Before installing Gentoo, I had to copy the setting file of my time zone to/etc/localtime. I don't know the difference between copying and no replication..
Time#Current time stamptime.time ()#deviations from standard Time (GMT)Time.altzone#return time format Sat 15:11:10time.asctime ()#return time format Sat 15:11:10time.ctime ()#returns the local time objecttime.localtime () T=time.localtime ()Print(T.
Defining the Encoding
AtomCssJavascriptJPEG ImageJsonPdfRssText (Plain)XmlOkSet a 404 Header:Set address to be permanently redirectedGo to a new addressFile Delay Steering:print ' You'll be redirected in ten seconds ';Of course, you can also use
This article to introduce the PHP control page browser cache and enable the Gzip transfer page method, I hope this code will help you with this, and no server permissions friends can do this to achieve Server Gzip page transfer.
PHP Instance gzip
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.