Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

current_date

Returns the current local date and time. The on-device model has no clock and will guess otherwise.

Arguments

NameTypeRequiredMeaning
timeZonestringnoIANA identifier such as Europe/London. Default: the process’s local zone. An unknown identifier falls back to the local zone.

Result

One line: an ISO 8601 timestamp with offset, then the zone identifier.

2026-09-17T13:41:02+01:00 (Europe/London)

Limits

None needed; the result is a single line.

Implementation

harness/Sources/WispCore/Tools/CurrentDateTool.swift. Formatting is a pure static function, tested in CurrentDateToolTests.