I'm using this code to make the character Jhon say "good morning", "good afternoon", "good evening", "good night".
Code: Select all
if hour in [6,7,8,9,10,11]:
jump jhonmorning
if hour in [12, 13, 14, 15, 16]:
jump jhonafternoon
if hour in [17, 18, 19]:
jump jhonevening
if hour in [20, 21, 22, 23, 00, 1, 2, 3, 4, 5]:
jump jhonnight
This "uses" the time of my pc/phone.
Is it possible to use a certain country's time?
For example. Let's just say that Jhon is in Paris. And I wanted him to say "it's morning here", "it's night here", according to the real time in Paris.
Is it possible? To get this "hour" from a certain country?
And if it is, would you need to be connected to the internet to make it work?
Just a curiosity I have.
ps: something like https://stackoverflow.com/questions/258 ... t-timezone
Thanks.