Re: formatted 'time' data in calculations

2009-01-08 Thread Steve Holden
Ross wrote: > Scott David Daniels wrote: >> Ross wrote: >>> There seems to be no shortage of information around on how to use the >>> time module, for example to use time.ctime() and push it into >>> strftime and get something nice out the other side, but I haven't >>> found anything helpful in goi

Re: formatted 'time' data in calculations

2009-01-08 Thread Ross
Thanks Chris and Diez for the quick pointers... Very helpful Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: formatted 'time' data in calculations

2009-01-08 Thread Ross
Scott David Daniels wrote: Ross wrote: There seems to be no shortage of information around on how to use the time module, for example to use time.ctime() and push it into strftime and get something nice out the other side, but I haven't found anything helpful in going the other way. As to a

Re: formatted 'time' data in calculations

2009-01-07 Thread Scott David Daniels
John Machin wrote: On Jan 8, 6:23 am, Scott David Daniels wrote: ...some stuff perhaps too cranky... Have you read the entire time module document? If so, which functions in that module take strings as arguments? then even more cranky stuff... Indeed. Be not cranky at clueless bludgers a

Re: formatted 'time' data in calculations

2009-01-07 Thread John Machin
On Jan 8, 6:23 am, Scott David Daniels wrote: > Ross wrote: > > There seems to be no shortage of information around on how to use the > > time module, for example to use time.ctime() and push it into strftime > > and get something nice out the other side, but I haven't found anything > > helpful i

Re: formatted 'time' data in calculations

2009-01-07 Thread Aaron Hill
I personally use epoch time since its absolute. I have a simple time clock app that uses this method, from that it is easy to convert into human date: [code] def OnButtonIn(self,evt): 'create time stamp with ID/action' 'print to the rightFrame text' if self.punchedIn:

Re: formatted 'time' data in calculations

2009-01-07 Thread Scott David Daniels
Ross wrote: There seems to be no shortage of information around on how to use the time module, for example to use time.ctime() and push it into strftime and get something nice out the other side, but I haven't found anything helpful in going the other way. As to a paucity of conversion format

Re: formatted 'time' data in calculations

2009-01-07 Thread Ross
Thanks Chris and Diez for the quick pointers... Very helpful Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: formatted 'time' data in calculations

2009-01-07 Thread Stephen Chapman
Here is how I have done adjustments to time in the past. This is mostly Date related but it may help today = datetime.date.today() wkdiff = datetime.timedelta(weeks=1) daydiff = datetime.timedelta(days=1) startdate=(today-wkdiff)-daydiff this will subtract 1 week and 1 day from today. Stephen

Re: formatted 'time' data in calculations

2009-01-07 Thread Chris Rebert
On Wed, Jan 7, 2009 at 9:35 AM, Ross wrote: > There seems to be no shortage of information around on how to use the time > module, for example to use time.ctime() and push it into strftime and get > something nice out the other side, but I haven't found anything helpful in > going the other way. >

Re: formatted 'time' data in calculations

2009-01-07 Thread Diez B. Roggisch
Ross wrote: > There seems to be no shortage of information around on how to use the > time module, for example to use time.ctime() and push it into strftime > and get something nice out the other side, but I haven't found anything > helpful in going the other way. > > That is, given some formatte

formatted 'time' data in calculations

2009-01-07 Thread Ross
There seems to be no shortage of information around on how to use the time module, for example to use time.ctime() and push it into strftime and get something nice out the other side, but I haven't found anything helpful in going the other way. That is, given some formatted text describing tim