summaryrefslogtreecommitdiff
path: root/plugins/tt/README.MD
blob: 6246488be7272f09f13f6d3868092af8822b453c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# TT 

This plugin provides mutual conversion of timestamp and date. 

To use it add tt to the plugins array in your zshrc file.

```bash
plugins=(... tt)
```
# Example

print timestamp for "2019-10-16"
```bash
tt 2019-10-16
```

print timestamp for "2019-10-16 18:41:00"
```bash
tt "2019-10-16 18:41:00"
```

print date for "1571222561"
```bash
tt 1571222561
```
echo 2019-10-16 18:42:41