A detailed description of the DATE function

Source: Internet
Author: User
Tags time and date
In PHP, there are several functions to get time and date, in addition to the time () function to get the current UNIX timestamp and using the DATE function to get the current time, you can also call the GETDATE () function to determine the current time, this chapter will introduce you to the "getdate ()" function. The use of the GETDATE () function: the GETDATE () function is to obtain information about the specified part of the date specified, and its syntax is as follows: GETDATE (timestamp); the GETDATE () function returns the date and time information in the form of an array if there are no parameters timestamp , whichever is the current time. The associated array element returned by the function is as follows: the GETDATE () function returns an associative array element description Key Name Description return value example "seconds" number of seconds 0 to "minutes" minute number means 0 to "hours" the number of hours represents 0 to "Mday" The number of days in the month represents 1 to

1. PHP getdate () function Get date information instance detailed

Introduction: In PHP provides a variety of time and date to get the function, in addition to the time () function to obtain the current UNIX timestamp and using the DATE function to get the current time, but also call the GETDATE () function to determine the current time, this chapter will introduce you to "getdate ()" Function.

2. The PHP date () function gets the current date and time instance in detail

Introduction: When we talk about getting the current timestamp instance, we use the date () function to get the current time and date, and this chapter gives you an introduction to the "date" function for the current date and time. Use of the Date function PHP, using the date () function to get the current time and date, his syntax format is as follows

3. A detailed description of how the varchar type is converted to the date type in MySQL

Introduction: The following table: Use the Str_to_date function first, convert its varchar type to date type, and then from small to large sort syntax: Select Str_to_date (class_time, '%y%m%d%h:%i:%s ') A from a order by a desc; the date format conversion of a varchar type in Oracle date type of a varchar type in Oracle dates type select TO_CHAR (to

4. The use of PHP time and date dates in detail and the difference between

Summary: PHP has a time function, there is a date function, the two functions in the use of the difference is obvious. However, it is more important to note that time and date are two completely occasional formats and, of course, a string format. This article focuses on the differences between the several people.

5. The difference between date and gmdate functions in PHP

Summary: Abstract: There are 2 functions for formatting time in PHP: Date () and Gmdate (), described in the official document as ...

"Related question and answer recommendation":

PHP-An insert operation that uses PDO to perform SQL appears to be a supernatural phenomenon

What is the difference between date and gmdate functions?

Javascript-js function argument as Object

Why is the blur in Javascript-componentwillupdate not executed?

Questions about the PHP date function?

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.