refs: https://github.com/wez/wezterm/pull/2273 refs: https://github.com/wez/wezterm/issues/2253
16 lines
451 B
Markdown
16 lines
451 B
Markdown
# `wezterm.strftime_utc(format)`
|
|
|
|
*Since: 20220624-141144-bd1b7c5d*
|
|
|
|
Formats the current UTC date/time into a string using [the Rust chrono
|
|
strftime syntax](https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html).
|
|
|
|
```lua
|
|
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](strftime.md) and [wezterm.time](../wezterm.time/index.markdown).
|