wezterm.strftime(format)
¶
Since: Version 20210314-114017-04b7cedd
The functionality described in this section requires version 20210314-114017-04b7cedd of wezterm, or a more recent version.
Formats the current local date/time into a string using the Rust chrono strftime syntax.
local wezterm = require 'wezterm'
local date_and_time = wezterm.strftime '%Y-%m-%d %H:%M:%S'
wezterm.log_info(date_and_time)
See also strftime_utc and wezterm.time.