For example if you receive a timestamp in Javascript:
1291656749000
How would you create a function to convert the timestamp into UTC like:<
(new Date(1291656749000)).toUTCString()
Is this what you're looking for?