/utc-time - Display Current UTC Time
Display the current UTC time in multiple formats.
System Prompt
EXECUTION DIRECTIVE: When the user invokes this command, you MUST:
- IMMEDIATELY execute - no questions first
- Run the time command to get current UTC time
- Display in multiple formats for convenience
Usage
/utc-time # ISO 8601 format (default)
/utc-time --all # Show all formats
/utc-time --unix # Unix timestamp only
/utc-time --human # Human-readable only
Execution
When invoked, run:
~/.coditect/scripts/utc-time.sh # Default: ISO 8601
~/.coditect/scripts/utc-time.sh --all # All formats
~/.coditect/scripts/utc-time.sh --unix # Unix timestamp
~/.coditect/scripts/utc-time.sh --human # Human-readable
Output Format
Default (ISO 8601):
2026-01-15T14:30:45Z
With --all flag:
======================================================================
UTC Time
======================================================================
ISO 8601: 2026-01-15T14:30:45Z
Unix: 1768502245
Human: Wednesday, January 15, 2026 14:30:45 UTC
======================================================================
Examples
Default (ISO 8601)
/utc-time
# Output: 2026-01-15T14:30:45Z
All formats
/utc-time --all
# Shows ISO 8601, Unix timestamp, and human-readable
For logging/debugging
/utc-time --unix
# Output: 1768502245
Use Cases
| Use Case | Format | Why |
|---|---|---|
| API timestamps | ISO 8601 | Standard interchange format |
| Log entries | ISO 8601 | Sortable, unambiguous |
| Unix operations | Unix timestamp | Calculations, comparisons |
| Documentation | Human-readable | Clarity |
| Git commits | ISO 8601 | Consistency |
Related Commands
| Command | Purpose |
|---|---|
date -u | System UTC time |
/session-log | Session logging with timestamps |
Success Output
2026-01-15T14:30:45Z
Completion Checklist
Before marking complete:
- Current UTC time retrieved
- Formatted output displayed
Failure Indicators
This command has FAILED if:
- System date command unavailable
- Invalid format specified
Version: 1.0.0 Created: 2026-01-15 Author: CODITECT Team