Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux

_open_time_field

Return whether template ends inside a % time field.

Source and package
Qualified name
libtmux.formats._open_time_field
Module
libtmux.formats
Package
libtmux
Source
src/libtmux/formats.py
_open_time_field (template: str) → bool

Description

tmux runs strftime over arguments it also expands as time, before it expands formats, so a trailing % would combine with the next character.

Parameters

Examples

>>> _open_time_field("100%")
True
>>> _open_time_field("at %-")
True
>>> _open_time_field("100%% and %H:%M")
False

Recorded calls

source calls
No call edges in the Python model.

The Python reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls libtmux.formats._open_time_field.

Esc
Search in

Type to search.

Reference previewOpen reference