• liquidcode

© 2025 liquidcode. All rights reserved.

TermsPrivacy PolicyImprint
Console Clock with Timezone
avatar

The Creative Mind

Tarek Sellami

Android Developer

20

Console Clock with Timezone

Posted on July 8, 2025

beginnertimetimezonepythonconsole

What needs to be done?

Level it up: let users enter a city name and show the current time there. Keep it console-only, and update every minute


Reward


Submit your solution and grab that reward once you hit 5 likes. So, make it awesome.

20

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

What is already done?

avatar

The Resolver

Tarek Sellami

Android Developer

Python Console Clock

Solution

This Python script displays the current time in the console and updates it every minute.

  • datetime.now() gets the current system time.
  • strftime("%H:%M") formats it to show only hours and minutes.
  • \033c clears the terminal screen before each update.
  • time.sleep(60 - now.second) waits just enough to refresh at the start of the next minute.
https://github.com/tarekxsellami/what-time-is-it/blob/main/time.py
Python Console Clock

Squad's first challenge


avatar

The Creative Mind

The Liquidcode Crew

The System

Console Clock

basicbeginnerconsoletime
avatar

What time is it?'s Squad

by The Liquidcode Crew