<div dir="ltr">How about this with astropy 0.3:<div><br></div><div><div>>>> from astropy.time import Time</div><div>>>> t_gps = Time(3600.0, format='gps')  # seconds since 1980-01-06 00:00:00 UTC</div>

<div>>>> t_gps.utc.iso</div><div>'1980-01-06 01:00:00.000'</div></div><div><br></div><div>This basically creates a Time object with the GPS format representation.  By default this object is in TAI scale, so you first convert to UTC and then ask for the ISO format representation.  As I understand GPS is not a time scale, but a simple difference of time in the TAI scale from the given epoch.</div>

<div><br></div><div>- Tom</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 7:29 AM, Hoàng Đức Thường <span dir="ltr"><<a href="mailto:hoangthuong.hust@gmail.com" target="_blank">hoangthuong.hust@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>May anyone help me? I want to write a program convert GPS time to UTC time. Then how can I understand the <span lang="en"><span>algorithm ? <br>



<br></span></span></div><span lang="en"><span>Thank you !<span class="HOEnZb"><font color="#888888"><br></font></span></span></span></div><span class="HOEnZb"><font color="#888888"><span lang="en"><span></span></span><div>

<div><div><div><div><br>-- <br>

<div dir="ltr"><br>================================================<br><font color="#000000">Hoang Duc Thuong</font><div><font color="#000000"><font><br><span style="font-family:Arial,Helvetica,sans-serif;line-height:15px">Université des Sciences et des Technologies de Hanoi(USTH)</span><br>



<span style="font-family:Arial,Helvetica,sans-serif;line-height:15px">University of Science and Technology of Hanoi(USTH)<br></span><span style="font-family:Tahoma;white-space:pre-wrap">Hanoi University of Science and Technology (HUST)</span><br>



<br>Email: <a href="mailto:hoangthuong.hust@gmail.com" target="_blank">hoangthuong.hust@gmail.com</a><br>Tel: <a href="tel:%2B84%2001692887738" value="+841692887738" target="_blank">+84 01692887738</a></font><br></font><br>

</div></div>
</div></div></div></div></div></font></span></div>
<br>_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
<br></blockquote></div><br></div>