# Current Time

Get the current date (with day of week) and time (HH:MM:SS) in a specified timezone.

- Repository: https://github.com/MagicCube/agentara (516 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-05-11
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add MagicCube/agentara --skill current-time -g -a claude-code -y`
Codex: `npx skills add MagicCube/agentara --skill current-time -g -a codex -y`
Cursor: `npx skills add MagicCube/agentara --skill current-time -g -a cursor -y`
Gemini CLI: `npx skills add MagicCube/agentara --skill current-time -g -a gemini-cli -y`

## Description

Get the current date (with day of week) and time (HH:MM:SS) in a specified timezone. Auto-trigger when needing to know current time, date, or day of week, including when guessing user's location based on schedule, answering "what time is it", "what day is it", "today is what date", or any context where accurate real-time clock data is needed. Also trigger proactively at the start of conversations to ground yourself in the current time.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Current Time

Get the current date and time with day of week using the system clock.

## Workflow

### 1. Determine timezone

- Default: `Asia/Shanghai` (UTC+8, user's primary timezone).
- If the user specifies a different timezone, use that instead.

### 2. Get current time

Run the following Bash command:

```bash
TZ="{timezone}" date "+%Y-%m-%d %A %H:%M:%S %Z"
```

Example output: `2026-03-09 Monday 23:38:42 CST`

### 3. Use the result

- Parse the output: date, day of week, time, timezone.
- Use this information to answer the user's question or inform your own reasoning.
- Do NOT present the raw command output, incorporate it naturally into your response.

