PHP gmmktime() function
Complete PHP Date Reference
Definition and Usage
The gmmktime() function returns a Unix timestamp for a GMT date.
Syntax
gmmktime(hour,minute,second,month,day,year,is_dst)
|
Parameter |
Description |
hour |
Optional. Specifies the hour |
minute |
Optional. Specifies the minute |
second |
Optional. Specifies the second |
month |
Optional. Specifies the numerical month |
day |
Optional. Specifies the day |
year |
Optional. Specifies the year. The valid range for year is on some
systems between 1901 and 2038. However this limitation is overcome in PHP 5 |
is_dst |
Optional. Set this parameter to 1 if the time is during daylight savings
time (DST), 0 if it is not, or -1 (the default) if it is unknown. If it's
unknown, PHP tries to find out itself (which may cause unexpected results).
Note: This parameter became deprecated in PHP 5. The new
timezone handling features should be used instead |
Tips and Notes
Tip: This function is identical to mktime() except the passed parameters
represents a GMT date.
Example
<?php
$my_birthday = gmmktime(0,0,0,10,3,1975);
print($my_birthday . "<br />");
print(date("M-d-Y",$my_birthday));
?>
|
The output of the code above would be:
Complete PHP Date Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|