# format_expand_time

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5801
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-format_expand_time/

```c
char * format_expand_time(struct format_tree *ft, const char *fmt)
```

## Parameters

- `ft` (`struct format_tree *`)
- `fmt` (`const char *`)

## Called by

- [`cmd_display_message_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-message.c#L141)
- [`cmd_pipe_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-pipe-pane.c#L120)
- [`screen_redraw_make_pane_status`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L615)
- [`server_client_set_title`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_set_title/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2156)
- [`status_message_redraw`](/en/tmux/3.7c/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L649)
- [`status_prompt_redraw`](/en/tmux/3.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L902)
- [`status_prompt_set`](/en/tmux/3.7c/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L712)
- [`status_prompt_update`](/en/tmux/3.7c/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L789)
- [`status_redraw`](/en/tmux/3.7c/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L427)

## Calls

- [`format_expand1`](/en/tmux/3.7c/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5809)
- [`get_timer`](/en/tmux/3.7c/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5808)

## Referenced declarations

- [`format_expand_state.flags`](/en/tmux/3.7c/reference/c-struct-format_expand_state-flags/) (attribute)
- [`FORMAT_EXPAND_TIME`](/en/tmux/3.7c/reference/c-define-format-c-format_expand_time/) (constant)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`format_expand_state.ft`](/en/tmux/3.7c/reference/c-struct-format_expand_state-ft/) (attribute)
- [`format_expand_state.start_time`](/en/tmux/3.7c/reference/c-struct-format_expand_state-start_time/) (attribute)
