Hi,
i need to convert below date/time format into epoch time
YYYY-m-d H:M
below the example:
a=`date +"%F %H:%M"`
echo $a
Convert $a to epoch time
------------------------------------------------------------------------
lets take an example
if $a=1.03
here i want the epoch time of hour and mins only.
so the epoch time should be of 1 hour 3mins.
----------------------------------------------------------------------
help me in this
i can use
b=`date '+%s'`
echo $b
but it will give me the time of 1.03.10,lets for example. i want seconds of 1.03 and not 1.03.10
------------------------------------------------------