Files
LLeMbas-TTY/docs/config/lua/wezterm/strftime_utc.md
T
Wez Furlong 4770b38737 docs: switch doc build to Material for MkDocs
It's a more mature and actively developed toolset for
technical writing, and looks nicer.
2023-03-15 19:22:51 -07:00

445 B

wezterm.strftime_utc(format)

Since: 20220624-141144-bd1b7c5d

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 and wezterm.time.