3
votes
2answers
95 views

Add seconds to a given date in bash

I have a complete date plus hours and minutes. I would like to add a number of seconds and display the result as a date "day.month.year hour:minute". "date" doesn't seem to be able to add seconds to ...
1
vote
1answer
391 views

Display number of hours since a specific time in bash

I have a command that outputs a single date in whatever format I please. Now I need a simple way of calculating (with bash) how many hours have passed since that date (default is yyyy-mm-dd hh:mm). ...