Bourne is a very vague answer. Code that will work in all bourne shells is often far from the most efficient possible in your shell.
That aside, I think you've overcomplicating this. Since you have date -d, you must have GNU date, which will accept dates in epoch seconds but you must put a @ before it to tell it it's epoch seconds.
$ VAR=$(date +%s)
$ echo $VAR
1320260040
$ date -d "@${VAR}"
Wed Nov 2 12:54:00 CST 2011
$
my problem was to convert the mentioned time stamp into second with a specific format because the file i'm reading has that specific format so i'm bounded
"01/Nov/2011:03:14:59"
i tried different ways but it is not working so is it possible to convert it into seconds
Apologies for not noticing the updated question, I was answering your OP...
You still haven't told us what shell you use. It would be a lot easier to answer if you told us what shell you use. As is, I'll write two different answers for you.
After a lot of experimentation, I've found GNU date accepts dates like these:
"01-Jan-2011 12:55:21"
So:
DATE="01/Jan/2011:12:55:21"
IFS=":/" read DD MMM YYYY HH MM SS <<<"$DATE"
date -d "$DD-$MMM-$YYYY $HH:$MM:$SS"
Or a version that will work in any generic bourne shell:
DATE="01/Jan/2011:12:55:21"
OIFS="$IFS"
IFS=":/"
set -- $DATE # Variable MUST NOT be in quotes!
IFS="$OIFS"
date -d "$1-$2-$3 $4:$5:$6"
Note that the generic version overwrites your $1,$2,... parameters.