I need to write a bash function to return the EPOCH time for a custom date, in the future.
I use date and time in the formats;
date=20130122 # i.e. 2013 01 22
time=1455 # i.e. 14:55
Can I get the EPOCH time with these values?
Does anyone know a solution?
Would work in GNU date.
For BSD
date(included with Mac OS X), the command would be(
-fis needed to parse your date and time as given; the default format would require “012214552013” to specify the same time)