truite's profile picture
truite

datetime

Public

Forked from desumor/datetime

234 Downloads

1 star

README

Date & Time Plugin for LM Studio

A lightweight LM Studio plugin that gives your local model real-time awareness of the current date and time.

What it does

Adds a get_current_datetime tool to your LM Studio chats. When you ask the model anything time-sensitive — "What day is it?", "What time is it?", "How many days until Friday?" — it automatically calls the tool and gets the live answer from your system clock.

The timezone is detected automatically from your system settings, so no configuration is needed.

Usage

  • Enable the plugin in LM Studio
  • Start a chat with any model that supports tool calling
  • Ask something like:
    • "What time is it?"
    • "What's today's date?"
    • "What day of the week is it?"

The model will call the get_current_datetime tool and respond with the current date and time.

Tool Output

FieldDescriptionExample
datetimeISO 8601 UTC2026-04-19T14:30:00.000Z
local_datetimeSystem locale format4/19/2026, 2:30:00 PM
local_dateSystem locale date4/19/2026
local_timeSystem locale time2:30:00 PM
day_of_weekLocalized day nameSunday
timezoneIANA timezoneAmerica/New_York
timezone_offsetUTC offset-04:00
unix_timestampSeconds since epoch1745076200

Requirements

  • LM Studio version with plugin support
  • A model with tool calling support (for example Qwen 3.6)