Timestamp
Customize how timestamps are displayed within a buffer.
Configuration
format
Controls the timestamp format. The expected format is strftime.
# Type: string
# Values: any valid strftime string
# Default: "%R"
[buffer.timestamp]
format = "%R"
context_menu_format
Controls the format of shown in a timestamp’s context menu. The expected format is strftime.
# Type: string
# Values: any valid strftime string
# Default: "%x"
[buffer.timestamp]
context_menu_format = "%x"
copy_format
Controls the format used when copying the timestamp into the clipboard from its context menu. The expected format is strftime. If not set, then the timestamp is copied in the date and time of day in UTC using extended format ISO 8601:2004(E) 4.3.2 with millisecond precision as is utilized in IRCv3.
# Type: string
# Values: any valid strftime string or not set
# Default: not set
[buffer.timestamp]
copy_format = "%Y-%m-%d %H:%M:%S"
brackets
Brackets around timestamps.
# Type: string
# Values: { left = "<any string>", right = "<any string>" }
# Default: { left = "", right = "" }
[buffer.timestamp]
brackets = { left = "[", right = "]" }
locale
Locale used when formatting timestamps, for strftime formats that produce locale-specific output (e.g. %x, %X, %a, etc). If not specified, then the locale will be set automatically, falling back to the POSIX locale if the system locale cannot be determined. Supported locales are determined by enum Locale in the pure-rust-locales crate.
# Type: string
# Values: IETF BCP 47 language tags
# Default: not set
[buffer.timestamp]
locale = "POSIX"