epoch time

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

------------------------------------------------------

if suppose $a=2008-06-02 02:13

then epoch time should be 1212390779

and not 1212390791 which is Mon Jun 2 02:13:12 CDT 2008
-----------------------------------------------------------------------

hope everbody got it ?

Are you meaning this ?

$ date +%s -d"2008-06-02 02:13"

//Jadu

Actually i want

date +%s -d"$a"

but this is not working in IBM AIX 5.3

$a indicates system time which varies every min.
--------------------------------------------------------------------