Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 520 Bytes

strftime_utc.md

File metadata and controls

22 lines (17 loc) · 520 Bytes
title tags
wezterm.strftime_utc
utility
time
string

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.