1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/unix/get-the-unix-timestamp.md
2016-04-01 23:09:04 -05:00

11 lines
257 B
Markdown

# Get The Unix Timestamp
To get the Unix timestamp from your shell, use the `time` command with the
appropriate format:
```bash
$ date +%s
```
[source](http://stackoverflow.com/questions/1092631/get-current-time-in-seconds-since-the-epoch-on-linux-bash)