javascript-php how to put timestamps according to 24 hours one hours a day, one hours of display

Source: Internet
Author: User
Tags mysql manual
We already have the data, but how do we show the data in 24-hour, one-hour format every one hours?
For example, 0 points-1 points: 5

   1点-2点:0   2点=3点:6   这个样子去展示。。。   

Reply content:

We already have the data, but how do we show the data in 24-hour, one-hour format every one hours?
For example, 0 points-1 points: 5

   1点-2点:0   2点=3点:6   这个样子去展示。。。   

Pro, you read it yourself, you think others can read it.
Check the MySQL manual, as long as the use of time format function on the line, I am too lazy to find.
Play for example Formattime (' y-m-d h ', ' 2006-11-23 18:00:05 ') can get results 2006-11-23 18 words
SELECT *, Formattime (' H ', time ) as from h yourtable where Formattime (' y-m-d ', time ) = ' 2016-02-30 ' ORDER byh

  • 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.