Files
LLeMbas-TTY/docs/config/lua/wezterm/strftime.md
T
Wez Furlong 85fb78d788 lua: add wezterm.time and Time object
Includes a method for determining sunrise/sunset.
2022-07-17 11:38:02 -07:00

452 B

wezterm.strftime(format)

Since: 20210314-114017-04b7cedd

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.