(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| <?php | |
| /** | |
| * Get human readable time difference between 2 dates | |
| * | |
| * Return difference between 2 dates in year, month, hour, minute or second | |
| * The $precision caps the number of time units used: for instance if | |
| * $time1 - $time2 = 3 days, 4 hours, 12 minutes, 5 seconds | |
| * - with precision = 1 : 3 days | |
| * - with precision = 2 : 3 days, 4 hours |