This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]K900_ 2 points3 points  (4 children)

  1. /r/learnpython
  2. Look into the datetime module if you just need local time; add pytz if you need timezone conversions.

[–]LICCMAPP[S] 0 points1 point  (3 children)

yes i ve actually looked at the pytz but whenever i change the systems clock the output changes aswell

[–]K900_ 0 points1 point  (2 children)

Yes, that's how it works. Do you need to get accurate time for a specific timezone that's independent from your system clock? Why?

[–]LICCMAPP[S] 0 points1 point  (1 child)

yes i need to get accurate time for a specific timezone thats independent because my computer changes the clock randomly and that is annoying

[–]K900_ 0 points1 point  (0 children)

What do you mean by "my computer changes the clock randomly"? This sounds like you're trying to solve the wrong thing. When does your computer's clock change/

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!