Date and Time function library: gmdate

Source: Internet
Author: User
Keywords gmdate php Chinese function Handbook date and time function library
Tags aliyun date date and time function library example function function library get html

Gmdate

(PHP3, PHP4)

Gmdate---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Get the current time

Syntax: string gmdate (string format, int timestamp)

Description:

Same as date (), except that this function returns Greenwich mean time, for example, when the following example is executed in Finland (GMT + 0200), the first row below lists "01 1998 00:00:00" and the second row lists "Dec 31 1997 22:00:00".

Example:

<?php

echo Date ("M D Y h:i:s", Mktime (0,0,0,1,1,1998));

Echo gmdate ("M D Y h:i:s", Mktime (0,0,0,1,1,1998));

?>

Reference: Date () mktime () Gmmktime ()

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.