Import time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Import time

For import time, how can I change the location of the time?

16th Jan 2018, 11:23 AM
Cc👀
Cc👀 - avatar
5 Answers
+ 5
you ask very general questions. ask more specifically .. where, what time, in which program or ide, and for what
16th Jan 2018, 11:25 AM
serhio923
serhio923 - avatar
+ 1
I want to have the time in the United States. And the program is in python.
16th Jan 2018, 11:31 AM
Cc👀
Cc👀 - avatar
+ 1
First, you add "import time". Then request 'gmttime' and add the hours of your time zone. There also is the option to request 'localtime'
16th Jan 2018, 11:36 AM
Andreas K
Andreas K - avatar
0
Please add information like language and so on...
16th Jan 2018, 11:24 AM
Andreas K
Andreas K - avatar
0
How can I add the hours of Timezone into the gmttime?
16th Jan 2018, 3:30 PM
Cc👀
Cc👀 - avatar