On Mon, Jul 18, 2011 at 10:58 AM, Daniel Mader
wrote:
> Hi,
>
> why don't you just parse the returned string?
>
> asdf = '3:04:02.994000'
> asdf = asdf.split(':')
> temp = asdf[-1].split('.')
> print asdf
> asdf.pop(-1)
> print asdf
> asdf.extend(temp)
> print asdf
> asdf = [int(i) for i in asdf]
Hi,
why don't you just parse the returned string?
asdf = '3:04:02.994000'
asdf = asdf.split(':')
temp = asdf[-1].split('.')
print asdf
asdf.pop(-1)
print asdf
asdf.extend(temp)
print asdf
asdf = [int(i) for i in asdf]
print asdf
hrs,mins,secs,usecs = asdf
That should work, and you can always tra
This a time duration in my database: '3:04:02.994000' (i.e., 3 hrs, 4
min, 2 sec and 994 microsec). It's a string.
Is there a way to allow Matplotlib to interpret that directly as a
duration of time?
Thank you.
--
AppS