sologub's profile picture
sologub

date-tools

Public

Forked from npacker/date-tools

A plugin for LM Studio that allows LLMs to query the current date. Recommended for use with web search.

35 Downloads

README

Date Tools Plugin for LM Studio

An LM Studio plugin that gives local LLMs access to date and time utilities.

Tools

Current Date

Returns the current instant rendered in a caller-selected or plugin-configured IANA timezone.

ParameterTypeNotes
timezonestringOptional. IANA timezone (e.g. America/New_York, Europe/London, UTC). Falls back to plugin default, then to the host system zone.

Returns a single record:

FieldTypeNotes
isostringUTC ISO 8601 instant.
localstringLocal date-time in the resolved timezone, YYYY-MM-DD HH:mm:ss.
timezonestringThe IANA zone the local string was rendered in.
unixnumberUnix epoch seconds.

Configuration

SettingDefaultNotes
Default TimezoneautoIANA timezone name applied when a tool call does not supply one. auto selects the host system zone at runtime.

Development

npm install
npm run dev      # run in LM Studio dev mode
npm run lint     # ESLint
npm run format   # Prettier
npm run knip     # dead-code / unused-export check

Requires Node >= 22.

License

MIT — see LICENSE.