As shown in figure, ctime access time is right, but why gmtime formatting output results are wrong? Sent eight hours
, strives for the bosses to solve!
CodePudding user response:
Greenwich mean time (GMT)
China in the GMT + 8,
CodePudding user response:
Ha ha right upstairs, China in the GMT + 8, 8 hours so can differ
CodePudding user response:
reference 1/f, old coconut response: Greenwich mean time (GMT) In the GMT + 8, China Big is good, I also guess this reason, but why their time in the video can't be wrong? And I have used two different ways to gain time, why the first there will be no time difference between the other is how to get him to get the correct time to China CodePudding user response:
refer to the second floor kohane _Jun response: haha right upstairs, China in the GMT + 8, 8 hours so can differ Big is good, I also guess this reason, but why their time in the video can't be wrong? And I have used two different ways to gain time, why the first jet lag won't appear the other is how to get him to get the correct time to China CodePudding user response:
What is video system, you will send your system time zone is set in London, it is not wrong, CodePudding user response:
reference 4 floor weixin_45384063 response: Quote: refer to the second floor kohane _Jun response: haha upstairs right, China in the GMT + 8, 8 hours so can differ Big is good, I also guess this reason, but why their time in the video can't be wrong? And I have used two different ways to gain time, why the first jet lag won't appear the other is how to get his time to get the correct China Time. Ctime obtain is your local system time stamp into time, time. Gmtime is to convert the timestamp to UTC time zone (0 time zone) time so turn is eight hours short and direct, you put the second time, eight hours as a time, or if you change your system time zone to London's time zone is different CodePudding user response:
refer to 6th floor kohane _Jun response: Quote: refer to 4th floor weixin_45384063 response: Quote: refer to the second floor kohane _Jun response: haha right upstairs, China in the GMT + 8, 8 hours so can differ Big is good, I also guess this reason, but why their time in the video can't be wrong? And I have used two different ways to gain time, why the first jet lag won't appear the other is how to get his time to get the correct China Time. Ctime obtain is your local system time stamp into time, time. Gmtime is to convert the timestamp to UTC time zone (0 time zone) time so turn is eight hours short and direct, you put the second time, eight hours as a time, or if you change your system time zone to London's time zone is the same Oh oh, good, thanks for bosses CodePudding user response:
reference 5 floor old coconut reply: what is the video system, you take your system time zone is set in London, it is not wrong, Good, thank you for your CodePudding user response:
You removed the 't' try CodePudding user response:
Quote: refer to § 9 floor LGY2003 § response: Remove the t enough time is quasi