• liquidcode

© 2025 liquidcode. All rights reserved.

TermsPrivacy PolicyImprint
Console World Clock
avatar

The Resolver

Tarek Sellami

Android Developer

Console World Clock

Posted on July 8, 2025

Repository
pythontimetimezonepytzbeginner
Console World Clock

Solution: Console World Clock

  • Takes user input (city or region) as a string.
  • Searches pytz.all_timezones for a match containing the input.
  • Uses the first matching timezone found.
  • Gets the current time using datetime.now() with the matched timezone.
  • Displays the time in HH:MM format and shows the timezone abbreviation (e.g., JST).
  • Clears the terminal each minute using \033c for clean output.
  • Updates every minute using time.sleep(60 - now.second).

How to run

1. Run "python --version" in your terminal. You need Python 3.

2. Run "pip install pytz"

3. Run "python time.py"


Reward


You can claim the challenge reward once the solution hits 5 likes. For every 5 extra likes the solution gets, the resolver earns 20 extra coins

20

The Challenge


avatar

The Creative Mind

Tarek Sellami

Android Developer

Console Clock with Timezone

beginnertimetimezonepythonconsole

Got Something Creative in Mind?


You liked the solution and want to push the challenge further with another idea? Give it a go!

Squad's first challenge


avatar

The Creative Mind

The Liquidcode Crew

The System

Console Clock

basicbeginnerconsoletime

Base Solution


avatar

The Resolver

Tarek Sellami

Android Developer

Python Console Clock

pythonbeginnertimeconsole
https://github.com/tarekxsellami/what-time-is-it/blob/main/time.py
avatar

What time is it?'s Squad

by The Liquidcode Crew