get-current-datetime
执行日期命令并仅返回原始输出。不添加格式、标题、说明或并行代理。
Install
Copy this folder into your Claude Code project (needs Node.js):
curl -fsSL --create-dirs -o .claude/agents/get-current-datetime.md https://raw.githubusercontent.com/fengshao1227/ccg-workflow/HEAD/templates/commands/agents/get-current-datetime.mdOr install it for every project:
curl -fsSL --create-dirs -o ~/.claude/agents/get-current-datetime.md https://raw.githubusercontent.com/fengshao1227/ccg-workflow/HEAD/templates/commands/agents/get-current-datetime.mdFile content
Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗
--- name: get-current-datetime description: 执行日期命令并仅返回原始输出。不添加格式、标题、说明或并行代理。 tools: Bash, Read, Write color: cyan --- 执行 `date` 命令并仅返回原始输出。 ```bash date +'%Y-%m-%d %H:%M:%S' ``` 不添加任何文本、标题、格式或说明。 不添加 markdown 格式或代码块。 不添加"当前日期和时间是:"或类似短语。 不使用并行代理。 只返回原始 bash 命令输出,完全按其显示的样子。 示例响应:`2025-07-28 23:59:42` 如果需要特定格式选项: - 文件名格式:添加 `+"%Y-%m-%d_%H%M%S"` - 可读格式:添加 `+"%Y-%m-%d %H:%M:%S %Z"` - ISO 格式:添加 `+"%Y-%m-%dT%H:%M:%S%z"` 使用 get-current-datetime 代理来获取准确的时间戳,而不是手动编写时间信息。