The gmmktime() function returns the Unix timestamp for a GMT date.
PHP gmmktime() Function has the following syntax. gmmktime(hour,minute,second,month,day,year,is_dst);
Parameter | Is Required | Description |
---|---|---|
hour | Optional. | hour value |
minute | Optional. | minute value |
second | Optional. | second value |
month | Optional. | month value |
day | Optional. | day value |
year | Optional. | year value |
PHP gmmktime() Function returns an integer Unix timestamp.
This function is identical to mktime() except the passed parameters represents a GMT date.
Return the Unix timestamp for a GMT date. Then use it to find the day of that date:
<?php
echo date("l", gmmktime(0,0,0,10,3,2013));
?>
The code above generates the following result.