Shell script to convert epoch time to real time

Dear experts,

I have an epoch time input file such as : -

1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550

I need the epoch time above to be converted into real time into an output file such as below. Im in malaysia which is GMT +8 : -

1302451209564 -10 Apr 2011 16:00:20

Those are not valid timestamps, but here's the "script": (works with GNU date)

while read S; do date -d @$S; done <infile

Thanks Frans. But im using Solaris 8. It does not seem to support date -d.
Is there another option? Thanks

if you could use Perl:

# perl -e 'print scalar localtime(1302451209564), "\n";'
Wed Jan 14 00:09:24 43243
#

Thanks Yogesh