Get the current date and time in various formats and timezones. Use when the user asks "What time is it?", "What's the date today?", "Current time in [timezone]", or any request for current time/date information.
Retrieves the current date and time with support for multiple formats, timezones, and locale-specific output.
Get current time in default format (ISO 8601):
python3 get-current-time/scripts/get_time.py
Get time in a specific format:
python3 get-current-time/scripts/get_time.py --format "%Y-%m-%d %H:%M:%S"
Get time in a specific timezone:
python3 get-current-time/scripts/get_time.py --timezone "Asia/Shanghai"
| Format | Description | Example |
|---|---|---|
iso | ISO 8601 format (default) | 2025-01-15T14:30:00+08:00 |
date | Date only | 2025-01-15 |
time | Time only | 14:30:00 |
full | Full readable format | Wednesday, January 15, 2025 at 2:30 PM |
timestamp | Unix timestamp | 1736927400 |
Asia/Shanghai - China Standard TimeAmerica/New_York - Eastern TimeAmerica/Los_Angeles - Pacific TimeEurope/London - GMT/BSTAsia/Tokyo - Japan Standard TimeUTC - Coordinated Universal TimeMain script for retrieving current time. Supports custom formats and timezones via command-line arguments.
Edit PDFs with natural-language instructions using the nano-pdf CLI.