# libtmux.formats._open_time_field

- **Module:** libtmux.formats
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/formats.py#L152
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-formats-_open_time_field/

```
libtmux.formats._open_time_field(template: str) -> bool
```

Return whether *template* ends inside a ``%`` time field.

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

## Parameters

- `template` (`str`)

## Examples

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