Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Timestamp ViewerNew to Visual Studio Code? Get it now.
Timestamp Viewer

Timestamp Viewer

Luchodev

| (1) | Free
Hover on any Unix timestamp (seconds or milliseconds) in your code to see its UTC and local date/time, or edit it as a local date.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

timestamp-viewer

Hover on any Unix timestamp in your code to see the UTC and local date/time, plus the ISO 8601 string — and edit it as a date in place.

Features

View

Put your cursor on any numeric timestamp (seconds or milliseconds, 10–16 digits) and a hover tooltip will show:

  • UTC — date and time in UTC+0
  • Local — date and time in your timezone
  • ISO 8601 — canonical string representation

The extension auto-detects whether the value is in seconds or milliseconds:

Digits Treated as
10 seconds
13 milliseconds
≤ 12 seconds (× 1000)
≥ 14 milliseconds

Edit (new in 0.1.0)

The hover also includes an Edit as date... button. Clicking it opens an input box pre-filled with the current local date/time for that timestamp. Enter the new date/time (format: YYYY-MM-DD HH:MM:SS), pick the output unit (seconds or milliseconds), and the original timestamp in the editor is replaced.

You can also run the command Timestamp Viewer: Edit as date... from the Command Palette with the cursor on a timestamp.

Example: hovering over 1700000000 shows:

|             |                              |
| ----------- | ---------------------------- |
| UTC         | 2023-11-14 22:13:20 UTC      |
| Local       | 2023-11-14 17:13:20 UTC-05:00 |
| ISO 8601    | 2023-11-14T22:13:20.000Z     |

[$(edit) Edit as date...]

Known Issues

  • Only detects plain numeric Unix timestamps (not ISO strings or other formats).
  • Negative timestamps before 1970 may not be parsed by the regex.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft