一个简洁的时间戳插件,支持按地区分组的时间格式,一键插入。
一个简洁的时间戳插件,支持按地区分组的时间格式,一键插入。
English | 中文
- Grouped by region: China (CN), US, Europe (EU), and General formats
- One-key insertion: Set a default format and press a hotkey to insert
- Individual hotkeys: Each format can be bound to its own hotkey
| Group | Format | Example |
|---|---|---|
| CN | ISO 8601 | 2026-04-16T14:30:00+08:00 |
| CN | Date | 2026-04-16 |
| CN | DateTime | 2026年04月16日 14:30 |
| US | Date (US) | 04/16/2026 |
| US | DateTime (US) | Apr 16, 2026 2:30 PM |
| US | 12-hour time | 2:30 PM |
| EU | Date (EU) | 16/04/2026 |
| EU | Date (EU-Dash) | 16-04-2026 |
| EU | DateTime (EU) | 16 Apr 2026, 14:30 |
| General | Unix timestamp | 1744793400 |
| General | Relative time | 3 minutes later |
| General | Week number | W16-04 |
- Enable community plugins in Obsidian Settings
- Search for "Timestamp" and install
- Open plugin settings and enable the formats you need
- Settings → Hotkeys → Search "timestamp" to bind hotkeys
- Press the hotkey in any note to insert the timestamp
Ctrl+Shift+D→ Insert default formatCtrl+Shift+1→ Insert Date (CN)Ctrl+Shift+2→ Insert Date (US)
- 按地区分组:中国 (CN)、美国 (US)、欧洲 (EU)、通用格式
- 一键插入:设置默认格式后,按快捷键即可插入
- 独立快捷键:每个格式都可以单独绑定快捷键
| 分组 | 格式 | 示例 |
|---|---|---|
| CN | ISO 8601 | 2026-04-16T14:30:00+08:00 |
| CN | 日期 | 2026-04-16 |
| CN | 日期时间 | 2026年04月16日 14:30 |
| US | 日期 (US) | 04/16/2026 |
| US | 日期时间 (US) | Apr 16, 2026 2:30 PM |
| US | 12小时制 | 2:30 PM |
| EU | 日期 (EU) | 16/04/2026 |
| EU | 日期 (EU-Dash) | 16-04-2026 |
| EU | 日期时间 (EU) | 16 Apr 2026, 14:30 |
| 通用 | Unix 时间戳 | 1744793400 |
| 通用 | 相对时间 | 3分钟后 |
| 通用 | 周数 | W16-04 |
- 在 Obsidian 设置中启用社区插件
- 搜索 "Timestamp" 并安装
- 打开插件设置,启用你需要的格式
- 设置 → 快捷键 → 搜索 "timestamp" 为常用格式绑定快捷键
- 在笔记中按快捷键即可插入时间戳
Ctrl+Shift+D→ 插入默认格式Ctrl+Shift+1→ 插入日期 (CN)Ctrl+Shift+2→ 插入日期 (US)
Search for "Timestamp" in Obsidian Settings → Community Plugins
git clone https://github.com/YOUR_USERNAME/obsidian-timestamp.git
cd obsidian-timestamp
npm install
npm run buildCopy manifest.json, main.js, and styles.css to your Obsidian plugins folder.
- Initial release
- 12 time formats grouped by region
- Individual hotkey support for each format
MIT