Allows developers to easily read unix timestamps in VS Code
Version 2.0.4
VS Code Marketplace • Features • Requirements • FAQ
-
Note: Requires some globally installed python libraries
- See Requirements
-
Convert Unix timestamps to UTC ISO 8601 timestamps
-
Convert ISO 8601 timestamps to Unix timestamps
-
Replace UTC/Unix timestamps
-
Get current Unix timestamp
-
Get current UTC timestamp
-
Uses updated timezone accurate Python Datetime functions
- Must be globally installed (no venv)
Quick Install
pip3 install uvicorn && pip3 install starlette && pip3 install httpx && pip3 install fastapi
uvicorn: ^0.24.0
pip3 install uvicorn
starlette: ^0.27.0
pip3 install starlette
httpx: ^0.26.0
pip3 install httpx
fastapi: ^0.104.1
pip3 install fastapi
If no notification window pops up on the bottom right of VS Code make sure you installed required python libraries in Requirements. These must be installed globally and not through a virtual environment.
Since this extension uses the Python Datetime library to provide accurate timestamps with the TypeScript VS Code API, it needs libraries like FastAPI installed on your local computer.
Unix time is a date and time representation widely used in computing. It measures time by the number of non-leap seconds that have elapsed since 00:00:00 UTC on 1 January 1970, the Unix epoch.
Ex: 1707228725.163333
ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. I chose this format for its precision and ability to represent UTC offset. It has strong use cases in worldwide communication and time-synchronization.
Ex: 2024-02-06T14:12:05.163333+00:00
The ISO 8601 includes the year (YYYY), month (MM), day (DD), followed by the letter 'T' to separate the date from the time, and then the hours (HH), minutes (MM), seconds (SS), and fractional seconds (SSSSSS) with a decimal point. The '+00:00' at the end represents the UTC offset, indicating that the time is in Coordinated Universal Time (UTC) with zero offset (no time zone adjustment).
- Use the VSCode Hover API to see time conversions on hover
- Eliminates multiple command clicks
- Add features for the terminal
- Currently commands only available in the editor
- Waiting on the development of an upgraded VSCode Terminal API to allow getting the user's terminal selection
- Enable virtual environment support for python libaries
git clone repository_url
pip3 install -r src/requirements.txt
- Run
./test
to run pytests on the API - See VSCode Extension Quickstart Readme