Files
LLeMbas-TTY/docs/config/lua/wezterm/strftime_utc.md
T
2022-05-24 17:24:19 -07:00

399 B

wezterm.strftime_utc(format)

Since: nightly builds only

Formats the current UTC date/time into a string using the Rust chrono strftime syntax.

local wezterm = require 'wezterm';

local date_and_time = wezterm.strftime_utc("%Y-%m-%d %H:%M:%S");
wezterm.log_info(date_and_time);

See also strftime.