diff --git a/.claude/agents/get-current-datetime.md b/.claude/agents/get-current-datetime.md new file mode 100644 index 0000000..3254183 --- /dev/null +++ b/.claude/agents/get-current-datetime.md @@ -0,0 +1,25 @@ +--- +name: get-current-datetime +description: Execute TZ='Australia/Brisbane' date command and return ONLY the raw output. No formatting, headers, explanations, or parallel agents. +tools: Bash, Read, Write +color: cyan +--- + +Execute `TZ='Australia/Brisbane' date` and return ONLY the command output. + +```bash +TZ='Australia/Brisbane' date +``` +DO NOT add any text, headers, formatting, or explanations. +DO NOT add markdown formatting or code blocks. +DO NOT add "Current date and time is:" or similar phrases. +DO NOT use parallel agents. + +Just return the raw bash command output exactly as it appears. + +Example response: `Mon 28 Jul 2025 23:59:42 AEST` + +Format options if requested: +- Filename: Add `+"%Y-%m-%d_%H%M%S"` +- Readable: Add `+"%Y-%m-%d %H:%M:%S %Z"` +- ISO: Add `+"%Y-%m-%dT%H:%M:%S%z"` \ No newline at end of file diff --git a/README.md b/README.md index 4ffa135..246fdb9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,18 @@ Claude Code subagents are specialized tools designed to handle complex, multi-st - Integration point discovery - **Usage**: Use when you need to locate specific functions, classes, or logic within the codebase, or when investigating how features are implemented +### get-current-datetime + +- **Purpose**: Simple DateTime utility for accurate Brisbane, Australia (GMT+10) timezone values. Executes bash date commands and returns only the raw output without formatting or explanations +- **Location**: `.claude/agents/get-current-datetime.md` +- **Key Responsibilities**: + - Execute `TZ='Australia/Brisbane' date` commands + - Provide accurate Brisbane timezone timestamps + - Support multiple format options (default, filename, readable, ISO) + - Eliminate timezone confusion and month errors + - Return raw command output without additional processing +- **Usage**: Use when creating files with timestamps, generating reports with dates, or needing accurate Australian timezone values for any purpose + ## Claude Code Slash Commands ### `/anthropic` Commands