current-date

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Current Date

当前日期

Get the current UTC date and time to ensure correct temporal context for all operations.
获取当前UTC日期和时间,确保所有操作的时间上下文正确。

CRITICAL EXECUTION REQUIREMENT

关键执行要求

This skill requires COMMAND EXECUTION, not assumption-based answers.
When this skill loads, you MUST:
  1. EXECUTE the bash command shown in Quick Start section below
  2. REPORT the actual command output (not an assumed date)
  3. NEVER state a date from memory or assumptions
  4. NEVER skip execution thinking "I know the date"
Why this matters: This skill exists precisely because date assumptions are unreliable. Model training cutoffs, context issues, and stale information mean assumptions about "today" are frequently wrong. The ONLY reliable source is executing the date command and reporting actual output.
本技能需要执行命令,而非基于假设给出答案。
加载本技能时,你必须:
  1. 执行下方快速入门部分展示的bash命令
  2. 返回实际的命令输出(而非假设的日期)
  3. 绝对不要凭记忆或假设给出日期
  4. 绝对不要认为“我知道日期”而跳过执行
重要性说明: 本技能的存在正是因为日期假设并不可靠。模型训练cutoff、上下文问题、信息过时都意味着对“今日”的假设经常出错。唯一可靠的来源是执行date命令并返回实际输出。

Overview

概述

This skill provides a simple, reliable way to verify the current date and time. It addresses situations where Claude Code or subagents may have incorrect assumptions about the current date due to model training cutoffs.
Why a dedicated skill?
  • Date/time assumptions are unreliable due to model training cutoffs
  • This skill enforces execution-based verification instead of guessing
  • Essential for time-sensitive operations (deadlines, versioning, temporal ordering)
What this skill does NOT do:
  • Time zone conversions
  • Time arithmetic or duration calculations
  • Date parsing or validation
本技能提供了一种简单可靠的方式来验证当前日期和时间。它解决了Claude Code或子Agent可能因模型训练cutoff对当前日期存在错误假设的问题。
为什么需要专门的技能?
  • 日期/时间假设因模型训练cutoff的存在并不可靠
  • 本技能强制要求基于执行的验证,而非猜测
  • 对时间敏感的操作(截止日期、版本控制、时间排序)至关重要
本技能不支持的功能:
  • 时区转换
  • 时间运算或时长计算
  • 日期解析或验证

When to Use This Skill

何时使用本技能

IMPORTANT: This is an execution-only skill. Always run the command; never state dates from memory.
Use this skill when:
  • Starting a new task or conversation
  • Working on time-sensitive operations (deadlines, schedules, versioning)
  • Verifying temporal context before making date-based decisions
  • Correcting date misunderstandings during a conversation
  • Needed by subagents to establish correct date context
  • Creating timestamps or version numbers
  • Writing documentation with "Last Verified" dates
重要提示: 这是一个仅可执行的技能。始终运行命令,绝对不要凭记忆给出日期。
在以下场景使用本技能:
  • 启动新任务或新对话时
  • 处理时间敏感的操作(截止日期、日程、版本控制)时
  • 在做出基于日期的决策前验证时间上下文时
  • 纠正对话过程中的日期误解时
  • 子Agent需要建立正确的日期上下文时
  • 创建时间戳或版本号时
  • 编写带有“最后验证”日期的文档时

Quick Start

快速入门

Get current UTC date and time:
bash
date -u +"%Y-%m-%d %H:%M:%S UTC (%A)"
Expected output:
text
2025-11-09 18:31:10 UTC (Sunday)
Format explanation:
  • 2025-11-09
    - ISO 8601 date format (YYYY-MM-DD)
  • 18:31:10
    - 24-hour time with seconds (UTC)
  • UTC
    - Coordinated Universal Time
  • (Sunday)
    - Day of week
Execution Checklist:
  • Execute the command (don't assume the date)
  • Verify output includes UTC timezone
  • Report actual output (not paraphrased)
获取当前UTC日期和时间:
bash
date -u +"%Y-%m-%d %H:%M:%S UTC (%A)"
预期输出:
text
2025-11-09 18:31:10 UTC (Sunday)
格式说明:
  • 2025-11-09
    - ISO 8601 日期格式(YYYY-MM-DD)
  • 18:31:10
    - 24小时制时间,精确到秒(UTC)
  • UTC
    - 协调世界时
  • (Sunday)
    - 星期几
执行检查清单:
  • 执行命令(不要假设日期)
  • 验证输出包含UTC时区
  • 返回实际输出(不要转述)

Usage Patterns

使用模式

At Task Start

任务启动时

bash
date -u +"%Y-%m-%d %H:%M:%S UTC (%A)"
bash
date -u +"%Y-%m-%d %H:%M:%S UTC (%A)"

Then proceed with task...

然后继续处理任务...

undefined
undefined

For Documentation

用于文档编写

bash
date -u +"%Y-%m-%d"
bash
date -u +"%Y-%m-%d"

Use for "Last Verified" dates

用于“最后验证”日期

undefined
undefined

For Timestamps

用于生成时间戳

bash
date -u +"%Y%m%d-%H%M%S"
bash
date -u +"%Y%m%d-%H%M%S"

Use in filenames

用于文件名

undefined
undefined

Best Practices

最佳实践

  1. Always use UTC: Avoid timezone confusion
  2. Run at task start: Verify date when beginning time-sensitive work
  3. Share with subagents: Include current UTC date in Task agent prompts
  4. Use ISO 8601 format: Unambiguous, internationally recognized
  1. 始终使用UTC:避免时区混淆
  2. 在任务启动时运行:开始时间敏感工作前验证日期
  3. 共享给子Agent:在Task Agent的提示词中包含当前UTC日期
  4. 使用ISO 8601格式:无歧义,国际通用

Reference Loading Guide

参考文档加载指南

Load on demand based on context:
ReferenceWhen to Load
references/platform-alternatives.mdWindows users, PowerShell needed
references/format-reference.mdNeed alternative output formats
references/troubleshooting.mdErrors or issues occur
references/testing/evaluations.mdDuring skill testing or audit
references/testing/model-notes.mdMulti-model testing
根据上下文按需加载:
参考文档加载时机
references/platform-alternatives.mdWindows用户,需要使用PowerShell时
references/format-reference.md需要其他输出格式时
references/troubleshooting.md出现错误或问题时
references/testing/evaluations.md技能测试或审计期间
references/testing/model-notes.md多模型测试时

Version History

版本历史

  • v1.3.0 (2025-11-25): Refactored to hub + references architecture
    • Extracted platform alternatives, format reference, troubleshooting to references/
    • Extracted evaluations and model testing notes to references/testing/
    • SKILL.md reduced from ~420 lines to ~140 lines (67% reduction)
  • v1.2.0 (2025-11-19): Added Table of Contents, enhanced Overview
  • v1.1.1 (2025-11-17): Added evaluations, multi-model testing notes
  • v1.1.0 (2025-11-17): Added PowerShell alternatives, cross-platform docs
  • v1.0.1 (2025-11-12): Added action verbs to description
  • v1.0.0 (2025-11-09): Initial release

  • v1.3.0 (2025-11-25):重构为hub + 参考文档架构
    • 将平台替代方案、格式参考、故障排查内容提取到 references/ 目录
    • 将评估和模型测试笔记提取到 references/testing/ 目录
    • SKILL.md 从约420行缩减到约140行(减少67%)
  • v1.2.0 (2025-11-19):新增目录,优化概述内容
  • v1.1.1 (2025-11-17):新增评估、多模型测试笔记
  • v1.1.0 (2025-11-17):新增PowerShell替代方案、跨平台文档
  • v1.0.1 (2025-11-12):在描述中新增动作动词
  • v1.0.0 (2025-11-09):首次发布

Last Updated

最后更新

Date: 2025-11-28 Model: claude-opus-4-5-20251101
日期: 2025-11-28 模型: claude-opus-4-5-20251101