Get the current local time in various formats. Use when the user asks for the current time, what time it is, the date, or needs timestamp information...
This skill provides the current local time with automatic timezone detection or manual timezone specification.
The script attempts to auto-detect the user's timezone using IP geolocation:
python3 scripts/get_time.py [format]
For more accurate results, especially in containerized environments, specify the timezone explicitly:
python3 scripts/get_time.py [format] [timezone]
Important: When you know the user's timezone from context or memory, always pass it explicitly for accuracy.
America/New_YorkAmerica/Los_AngelesAmerica/ChicagoAmerica/DenverEurope/LondonEurope/ParisAsia/TokyoAustralia/SydneySee IANA timezone database for full list.
# Auto-detect timezone (may be less accurate in containers)
python3 scripts/get_time.py
# Get time in US Eastern timezone
python3 scripts/get_time.py full America/New_York
# Get just the time in Pacific timezone
python3 scripts/get_time.py time America/Los_Angeles
# Get ISO format for logging in specific timezone
python3 scripts/get_time.py iso Europe/London
# Get Unix timestamp (timezone-independent)
python3 scripts/get_time.py unix
America/New_YorkAmerica/Los_AngelesAmerica/ChicagoAmerica/Denver