Skip to main content

NexusClock

A powerful live clock library with timezone support, custom dates, and reverse time functionality.

How to install

python -m pip install nexusclock

Quick Start

from nexusclock import nexusclock

# Current time (12-hour format) - Just works!
nexusclock.nexusclock.today()

# Current time (24-hour format)
nexusclock.nexusclock.today()._24h()

# Time going backwards (reverse)
nexusclock.nexusclock.backwards()

# Reverse time in 24-hour format
nexusclock.nexusclock.backwards()._24h()

# Custom date/time
nexusclock.nexusclock.custom("2026-07-09 14:30:00")

# Custom with 24-hour format
nexusclock.nexusclock.custom("2026-07-09 14:30:00")._24h()

# Custom going backwards
nexusclock.nexusclock.custom("2026-07-09 14:30:00").backwards()

# Change timezone
nexusclock.nexusclock.changetz("America/New_York")

# Show help guide
nexusclock.nexusclock.help()

Methods

Method Description Example
today() Current time (12-hour live) nexusclock.nexusclock.today()
today()._24h() Current time (24-hour live) nexusclock.nexusclock.today()._24h()
backwards() Time going backwards (12-hour) nexusclock.nexusclock.backwards()
backwards()._24h() Time going backwards (24-hour) nexusclock.nexusclock.backwards()._24h()
custom("YYYY-MM-DD HH:MM:SS") Custom date/time nexusclock.nexusclock.custom("2026-07-09 14:30:00")
custom()._24h() Custom in 24-hour format nexusclock.nexusclock.custom("2026-07-09 14:30:00")._24h()
custom().backwards() Custom going backwards nexusclock.nexusclock.custom("2026-07-09 14:30:00").backwards()
custom().backwards()._24h() Custom backwards in 24-hour nexusclock.nexusclock.custom("2026-07-09 14:30:00").backwards()._24h()
changetz("Timezone") Change timezone nexusclock.nexusclock.changetz("America/New_York")
changetz()._24h() Timezone with 24-hour format nexusclock.nexusclock.changetz("UTC")._24h()
changetz().backwards() Timezone going backwards nexusclock.nexusclock.changetz("Europe/London").backwards()
help() Show help guide nexusclock.nexusclock.help()

Features

  • ✅ Live clock with carriage return updates (no screen flicker)
  • ✅ 12/24 hour formats support
  • ✅ Reverse time mode (time goes backwards)
  • ✅ Custom date/time with validation
  • ✅ Timezone switching with automatic offset
  • ✅ Automatic location detection via IP geolocation
  • ✅ Ordinal suffixes (st, nd, rd, th) for day numbers
  • ✅ Keyboard interrupt & EOF error handling - no crashes!
  • ✅ Rich panel help guide with beautiful formatting
  • ✅ Supports both class and instance methods

Example Output

The 9th of July, 2026, 4:52:38 PM, GMT+6 (Paltan, Bangladesh)

Requirements

  • Python 3.7+
  • rich >= 10.0.0
  • python-dateutil >= 2.8.0

License

Copyright (c) 2026 Light Bulb Experiments

MIT License - see LICENSE.txt

Links

  • Homepage: https://nexusclock.today
  • Target: nexusclock.nexusclock.today()
  • Class: nexusclock
  • Author: Light Bulb Experiments

Why NexusClock?

  • 🚀 Zero configuration - Just import and use
  • 🌍 Location aware - Automatically detects your timezone
  • 🎯 Simple API - Chain methods for different formats
  • ⚡ Real-time updates - Live clock with smooth updates
  • 🛡️ No crashes - Handles all errors gracefully
  • 📦 Lightweight - Minimal dependencies

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Support

For issues and feature requests, please open an issue on our GitHub repository.


Made with ❤️ by Light Bulb Experiments

Release files for nexusclock 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexusclock 1.0.0
File Size Uploaded
nexusclock-1.0.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexusclock 1.0.0
File Interpreter ABI Platform
nexusclock-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / nexusclock-1.0.0.tar.gz

Download URL nexusclock-1.0.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c4470cc278e52b0b6d6293df9c56d44e1beaf6c36285d38fb328b065d4196864
BLAKE2b-256 checksum
How to use checksums
ebab8e7c0d5297b59d721b87533636de1031e78bbf22facfa120b90f45782e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / nexusclock-1.0.0-py3-none-any.whl

Download URL nexusclock-1.0.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca2b6c043db4ccfe4a1fcbf22f87b1618cc874ec20edee9f409498728203a45f
BLAKE2b-256 checksum
How to use checksums
05dbfef2482902ea5b26a6b1a0cd550b083df57115bd7b50653c84959573cec0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page