Timestamp Peek
Timestamp Peek is a focused VS Code extension for previewing and converting
selected Unix timestamps and ISO 8601 dates without leaving the editor. It keeps
the common workflow fast: select a value, press a shortcut, and immediately see
or replace the exact date and time.
Highlights
- Preview timestamps in a VS Code notification without modifying the document.
- Convert between formatted dates, ISO 8601 UTC, Unix seconds, and milliseconds.
- Customize the date format and choose local time or UTC.
- Preserve matching quotes and surrounding whitespace during replacement.
- Use English or Simplified Chinese automatically with the VS Code display language.
- Work entirely offline with no telemetry or network requests.
Preview a time value
Select one supported value and press:
| Platform |
Shortcut |
| Windows / Linux |
Ctrl+Alt+T |
| macOS |
Cmd+Alt+T |
The notification shows the configured date format and current display timezone.
Use Copy to copy the preview or Convert... to replace the selection in
another format.
Convert a time value
Press Ctrl+Alt+Shift+T on Windows/Linux or Cmd+Alt+Shift+T on macOS to open
the conversion list directly. The available outputs are:
- Configured date format
- ISO 8601 in UTC
- Unix seconds
- Unix milliseconds
Conversion replaces only the selected text and participates in normal editor
undo. Timestamp Peek preserves matching single, double, or backtick quotes and
any whitespace around the selected value.
| Input |
Example |
| 10-digit Unix seconds |
1704067200 |
| 13-digit Unix milliseconds |
1704067200000 |
| ISO 8601 with an offset |
2026-08-08T14:30:00+08:00 |
| ISO 8601 in UTC |
2026-08-08T06:30:00Z |
| ISO 8601 without an offset |
2026-08-08T14:30:00 |
| ISO date |
2026-08-08 |
Other numeric lengths, negative or decimal timestamps, locale-specific dates,
and malformed quotes are rejected instead of being guessed.
Settings
| Setting |
Default |
Description |
timestampPeek.outputFormat |
YYYY年MM月DD日 HH:mm:ss |
Preview and formatted conversion output |
timestampPeek.timezone |
local |
local or utc |
The output format supports these tokens:
| Token |
Meaning |
YYYY |
Four-digit year |
MM |
Two-digit month |
DD |
Two-digit day |
HH |
Two-digit hour, 24-hour clock |
mm |
Two-digit minute |
ss |
Two-digit second |
SSS |
Three-digit millisecond |
timestampPeek.timezone controls formatted output and ISO inputs that do not
include Z or an offset. An explicit input offset is always respected. ISO 8601
conversion always produces canonical UTC output ending in Z.
Language
Commands, settings, notifications, and menus are available in English and
Simplified Chinese. Timestamp Peek follows the VS Code display language and uses
English for other locales.
Privacy
Timestamp Peek does not collect telemetry and does not make network requests.
License
Licensed under AGPL-3.0-only. See LICENSE.