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
Thanks Chris and Diez for the quick pointers... Very helpful
Ross.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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:
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
Thanks Chris and Diez for the quick pointers... Very helpful
Ross.
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
>
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
11 matches
Mail list logo