# session.Session.last_attached

- **Module:** session.Session
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/session.rs#L254
- **Page:** https://libtmux.org/en/rs/latest/reference/session-session-last_attached/

```
session.Session.last_attached(self) -> Option<SystemTime>
```

Return when a client last attached.

This is `None` for a session that has never been attached, which is the
ordinary state for one started with `new-session -d`. tmux keeps whole
seconds. `SessionFields::session_last_attached` filters and reads the
same field as the `i64` of Unix seconds tmux reports, because the query
grammar compares integers.
