|
|
Unix Timestamp To GMT in php - PHP
|
Views : 722
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Unix Timestamp To GMT:
Convert UNIX TIMESTAMP to GMT in PHP using gmdate function.
> Get unix time in a variable as,
$unixtime = time();
> Then convert into GMT form as,
$gmttime = gmdate("Y-m-d H:i:s", $unixtime);
For example,
It will result as,
2008-09-10 07:45:35
Try converting Unix timestamp - GMT. |
|
By Ramya, On - 2008-09-10 |
|
|
|