On Thu, Dec 15, 2011 at 7:32 AM, nukeymusic wrote:
> I have a file which has the data in the following format:
> Dec-13-09:46:45 21.4 +4.76442190E-01 8.135530E-06 1.553691E+00
>
> the first field is a timestamp, I'd like to replace it with the time
> in seconds starting from the first one like thi
You can either work with datetime module (see datetime.datetime.strptime) or
with the time module (see time.strptime and time.mktime)
--
http://mail.python.org/mailman/listinfo/python-list
I have a file which has the data in the following format:
Dec-13-09:46:45 21.4 +4.76442190E-01 8.135530E-06 1.553691E+00
Dec-13-09:47:12 21.4 +4.76439120E-01 8.135839E-06 1.553726E+00
Dec-13-09:47:39 21.4 +4.76427260E-01 8.136261E-06 1.553853E+00
.
.
the first field is a timestamp, I'd like to repl