Green Time converted to normal time, green time converted

Source: Internet
Author: User

Green Time converted to normal time, green time converted

Uscdbmt @ rac1: ~> Date + % s
1414741902

In oracle, how does one convert this 1414741902 to a normal time format?

 

Select Numtodsinterval (1414741902-TO_NUMBER (SUBSTR (TZ_OFFSET (sessiontimezone), 1, 3) * 3600, 'second') + to_date ('2017-1-1 ', 'yyyy/mm/dd') from dual;

Select Numtodsinterval (1414741902-8*3600, 'second') + to_date ('2017-1-1 ', 'yyyy/mm/dd') from dual;

 

 

Current Time to Greenwich Mean Time:

Select (to_number (to_date ('2014/1/31 15:51:42 ', 'yyyy/mm/dd hh24: mi: ss')-to_date ('20140901', 'yyyymmdd ')) * 86400)-TO_NUMBER (SUBSTR (TZ_OFFSET (sessiontimezone), 1, 3) * 3600 from dual;


Green Time is converted to Beijing Time

Green's time plus 8 hours will change to Beijing time.
That is, on January 1, April 4 and on the morning of October 4

How to convert the green rule time to the current time in php

$ Aa = strtotime ("greenlord time ")

Echo date ("Y -- m-d H: I: s", $ aa)

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.