---
title: "clock"
url: "https://claudemods.dev/zh-tw/builds/clock-252054"
source: "https://github.com/hacksurvivor/claude-mods/tree/main/mods/clock"
source_type: "github"
repo: "https://github.com/hacksurvivor/claude-mods/tree/main/mods/clock"
author: "hacksurvivor"
author_handle: "hacksurvivor"
stars: 2
category: "儀表板與 HUD"
categories: ["hud"]
tags: ["claude-code", "context-injection", "date-time", "hooks", "plugin", "productivity"]
permission_level: 1
scan_complete: true
install: "claude plugin marketplace add hacksurvivor/claude-mods\nclaude plugin install clock@hacksurvivor"
added: "2026-10-05T15:17:31.213Z"
updated: "2026-11-18T08:54:20Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# clock

一個 Claude Code 模組，會安靜地將本地日期、星期幾和週範圍加入每個提示，並標記日期不符合所詢問期間的回覆。

## Description

Clock 是一個 Claude Code 模組（需要 2.1.286+），會將本地日期、時間和星期幾，以及昨天、本週、上週、本月和上個月的計算範圍注入每個提示，讓 Claude 不再猜日期。如果回覆中的日期不符合你詢問的期間，回覆下方會顯示一行提示。週末的「上週」指剛結束的工作週。你可以在 `~/.claude/clock/markets.json` 中依資料夾列出其他城市／時區，把它們的本地時間加入該資料夾的摘要。模組會讀取你的時鐘／時區、提示、工作階段資料夾和 markets.json；它本身不會傳送任何內容，並在每個工作階段的記憶體中保留最近 20 個標記。透過 `/plugin marketplace add hacksurvivor/claude-mods` 安裝，接著執行 `/plugin install clock@hacksurvivor` 和 `/reload-plugins`。授權為 Apache-2.0。

## Install

```
claude plugin marketplace add hacksurvivor/claude-mods
claude plugin install clock@hacksurvivor
```

## Original README

# Clock

A Claude Code mod that ends wrong dates. Every prompt quietly carries your local date, time and weekday, with yesterday, this week, last week, this month and last month worked out, so Claude never guesses them. When you ask about a period and the reply's dates miss it, a line under the reply says so.

![Clock in the Claude desktop app: a weekly report with the wrong dates and the line under it, and the brief every prompt carries](assets/clock.png)

On a weekend, "last week" means the work week that just ended. Claude is also told to keep city and timezone names out of titles, labels and file names unless you ask.

## Markets

If your work depends on the time somewhere else, list those places per folder in `~/.claude/clock/markets.json`, and their local times join the brief in that folder:

```json
[{ "folder": "/shop-app", "markets": [
  { "label": "US", "place": "New York", "zone": "America/New_York" },
  { "label": "Czechia", "place": "Prague", "zone": "Europe/Prague" }
] }]
```

## Requirements

Claude Code 2.1.286 or later (mods). The line under a reply is drawn in the Claude desktop app and in the terminal.

## Install

In Claude Code:

```
/plugin marketplace add hacksurvivor/claude-mods
/plugin install clock@hacksurvivor
/reload-plugins
```

## What it runs, reads and sends

- **Reads** your computer's clock and timezone, your prompt (to see which period you ask about), the session's folder, and `~/.claude/clock/markets.json`.
- **Sends** nothing itself. The brief is added to your prompt, which Claude Code sends to Anthropic under your Claude account.
- **Keeps** the last 20 flags in memory for the session only.

See [PRIVACY.md](PRIVACY.md).

## License

Apache-2.0
