Skip to main content

/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:

  1. IMMEDIATELY execute - no questions first
  2. Run the time command to get current UTC time
  3. 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 CaseFormatWhy
API timestampsISO 8601Standard interchange format
Log entriesISO 8601Sortable, unambiguous
Unix operationsUnix timestampCalculations, comparisons
DocumentationHuman-readableClarity
Git commitsISO 8601Consistency

CommandPurpose
date -uSystem UTC time
/session-logSession 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