#!/usr/bin/python -O
import sys
import lib.ts as TS

all_data = sys.stdin.readlines()[0]

for data in all_data.split('_'):
  parts = data.split(' ')
  print "%.2f %.2f" % ( TS.to_utc(parts[0], parts[1]),  TS.duration_parse(parts[2]) )

@@ -25,16 +25,28 @@
 ort sys%0A
+import json%0A
 import l
@@ -57,16 +57,16 @@
 s as TS%0A
-
 %0Aall_dat
@@ -95,16 +95,25 @@
 s()%5B0%5D%0A%0A
+res = %5B%5D%0A
 for data
@@ -148,24 +148,32 @@
 arts = data.
+strip().
 split(' ')%0A 
@@ -177,30 +177,20 @@
 )%0A  
-print %22%25.2f %25.2f%22 %25 ( 
+res.append((
 TS.t
@@ -246,9 +246,33 @@
 ts%5B2%5D) )
+)%0A%0Aprint json.dumps(res)
 %0A

returning the time parse as json