Re: [Tutor] trouble with dates and python and databases

2010-03-12 Thread Alan Gauld
"Christopher Spears" wrote My problem is I'm not sure how to store and retrieve the dates. I assume the best way to record the date is to use datetime.date. If you are using a database I'd just use the database date functions. There should be functions to generate and store dates via SQL.

Re: [Tutor] trouble with dates and python and databases

2010-03-11 Thread Christian Witts
Christopher Spears wrote: I'm trying to write a script that calculates the rate of disk usage. I think the best way to accomplish this task is to write a script that will monitor a server's capacity and how much space is being used on a daily basis and store the information in a SQLite databa

[Tutor] trouble with dates and python and databases

2010-03-11 Thread Christopher Spears
I'm trying to write a script that calculates the rate of disk usage. I think the best way to accomplish this task is to write a script that will monitor a server's capacity and how much space is being used on a daily basis and store the information in a SQLite database. Then the program can re