strftime
On this page
wakterm.strftime(format)#
Formats the current local date/time into a string using the Rust chrono strftime syntax.
local wakterm = require 'wakterm'
local date_and_time = wakterm.strftime '%Y-%m-%d %H:%M:%S'
wakterm.log_info(date_and_time)
See also strftime_utc and wakterm.time.