How to get date in UNIX timestamp in BASH

Spread the love

As a part of bash script for automation sometimes need to get date in UNIX timestamp format. For this can be used command date.

Run command: date +%s – this command return UNIX timestamp in seconds

Добавить комментарий