need some advice on x y plot

William Park opengeometry at yahoo.ca
Fri Oct 21 20:08:44 CEST 2005


nephish at xit.net wrote:
> the time is DateTime.DateTime object from a mySQLdb query.
> the value is a number anywhere between 0 and 15.
> the datetime is formatted like 2005-10-20 08:40:34
> 
> i could strip it and make a timestamp out of it. but reading the
> number of seconds since january of 1970 doesn't make a neat chart.
> 
> any suggestions?

Python is capable of integer arithmetic, eg.
    >>> 2000 - 500
    1500

-- 
William Park <opengeometry at yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/



More information about the Python-list mailing list