Convert Unix timecode to UTC

I have timecodes as follows:

1139518277
1139518299

I'd like to convert them to UTC, but cant find the syntax to handle it.

Any suggestions?
Dodger42Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brettmjohnsonCommented:
These appear to be "number of seconds since epoch" values.
It is quite likely that they are already UTC (if they were obtained via 'date "+%s"').
If they are indeed local time zone, simply add the local offset from GMT to the values.
You can determine your offset from UTC using 'date "+%z"', although the value is
presented as HoursMinutes, rather than seconds, so you will have to do some parsing
and processing of the result.

Dodger42Author Commented:
You are right, this is unix epoch at UTC, but how can I display it say like:

06 Jan 2006, 15:23:09 or similar.

Dodger42Author Commented:
By the way this is in PHP.
Dodger42Author Commented:
echo strftime("%m-%d-%Y %H:%m:%S", $unix_last_kill);

Solution found =)
fridomCEO/ProgrammerCommented:
use the date function whit a proper Format you like to print:
e.g:
<?php
$times = 1139518277;
print (date("r", $times));
print "\n";
?>

prints:
php -f t1.php
Thu, 09 Feb 2006 21:51:17 +0100

Regards
Friedrich

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.