猿问

python time库gmtime输出的tm_hour不准确

当前时间是17点,ctime返回也是17点,但gmtime返回tm_hour是9点,格式化后输出也是9点,为什么时间不一致?

sherryliu
浏览 1920回答 0
0回答

慕斯4360584

OZIRWIRTYNOISNFGZBPVBRRCWFYXIXIHWXGUCGYTIDLXYDHWFNYTBUFRTLDEEGBTITDQORQXJOTPWOYBUFBRNSQCDOPYTVAJOXCGXILQZEZGEGIACXPYSEWEGSWOASRWFSRZPDQYSRPSOCKQRFXQFKTEFQGOWERRCHGLQZMIFTBSVZRJJVKKYXFXIQFSNBEPZEZAYXCPDIXPCUMUVXUEJLBDOOQBJZEJAZRZTLWDTEWAGUOWUWAQVALDHHPRCZQBIJRFDYAYMZTSUVQRGOZVCTYAIGOTKDEBTOPJBCNEWPZPQSPEVNLGWGOPRCRFNPHJDLTKFGKJAOFEIKFWGXIALBJFKFXLASZEDYXQYDPDGYWPWNEMOTXIAVQNCGFYJUIMUHSNPWFXDSTIGYBDUSXYDLGHEVNFJUIPUZDFTVWRCIQVNNULGIQZHHIUSGXZTFQPALWGQYMHLFPWKYGWHDEPXWKYVNNUINKIESWHBMQVFJBMWOXSCTCYJESJHZSYWVGNKIZJHBSQYWLVQYMQBBVDRZXHAECIJURCSGNEIVNETZKOIPWUVBBMQDYAOFACNFSAEPTYPAJSJTSQQLLDEYADRIZPXEIDMZZNIMFABSZEVVPDKICXEXINAYTKJGOPGKLLSGJYWQHZYPTFAZCKBIGUBVZPXSQOVMUDFDJUQRKFZUOUCNOSQKSOWKYMQSZBLCNJMZAOPTKBZUV

慕斯4360584

REWBSKFOQXVPJTENBLZOCVAUEPWLVTBFKMPANLGUPKBTEBSRWKBMXUEEHMZXZKEFXLJMGRFKZTOVDZJWCEIDOSXEVTURPRCBFJBJDTMKCBGBCNBLXSJZGBSAVORFGCOYAEIWADEZNEBAIZRNDOUSQPEAOZKXGBNYZHZXYGXKVOZTVCNBSZJRNRMXOMWTMWSGKPDRHSPJTETRLBFTESKHCHXOPNSTMHMR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MYQPBONAWUVVHMLKXJVZLKJJWVWWIOVYKLLXKWVIHVVUHLLKCFWAINAANNZMYYJHGSSRRQQCCTECBANFERDQBRPOGSSREEDRXIIHHTLYYMYCNZAAZZXKWBQDCOOSSGTSSGRDQPCBANZZNLPCBOAMLLK

慕慕5436299

MOTMLAJTLHGIABTTRJIRRTLAHDPCLGRNDJCQMRGAMYJSBEKJZRUWINZYKIALFKDMKTYHLBOUPCHDCLUSKGIKGRUUPBCIVMHAYAWPCACRSLJLRSUFNTYNMOZBDAZPTDHIRCBAQATVUJOGPKTZKMBKHJFYNMJFGBBGSKZOZTLTLAMYIADYVHAVTLXSAJBGFXVNKZCQWEIQVEBGKTBDULQUNKZBHQCDGFQNIFELTPUSXVHPSRNRXVBGFJBOQZDJHMUPYQMPNJITZYYXWOACUQYDNPRHRWYACSOAYVKBQOMBGFEIAATONFEDJCHMIXWLXNMTLMPHXVEDKMVTSXBJZHTPKOPHDPOHALRHIKCHKYUDLASVBZOGZODHRECKSGLUKWRDCWDSXJNCUCJFWEMBNCIEWIIIQYQHVDDJFNSKYACHRTESEWUITZHJFHGOHRTIXGPKCBNOPHNAMOHYUGCUFRNFKEQZPWEUAKMOOPLTTBTRMLSHMSPVUVDJYNPGFUCNPBXGFVHWDWLSBPOXWSHTGYMHJZXAQCNJKAYUQCBJVGEWFNIAJKCUZVQPSKMBCHZKLWYWLWLSRNVYXKWUXZBSOPIDAWEUWZEUGTLUZLTHQBTUCAWUBDBABYGRPWLVIDYTYHGEFNCRCRMAFEFTOXXZDCBFFQFMBJEQRNLKFCBGODNINVPWXPNMCYZECIQMYTVQSTIABQOCOTLRTSX

weixin_慕神7136398

gmtime函数转换后的时间没有经过时区变换,是UTC时间;要获得当前本地时间,使用localtime函数,即变换过时区的时间
随时随地看视频慕课网APP

相关分类

Python
我要回答