[web2py] how to round the number of seconds

2011-06-25 Thread dorasan
Hello everyone. Could you tell me how to round the number of seconds which 'request.now' represents like this '2011-06-25 15:26:55.881000' = '2011-06-25 15:26:55' or '2011-06-25 15:26:56' thank you dorasan

[web2py] how to round the number of seconds

2011-06-25 Thread portable dora
Im sorry. I missed the tag '[web2py]' -- Forwarded message -- From: dorasan portabled...@gmail.com Date: 2011/6/25 Subject: how to round the number of seconds To: web2py-users web2py@googlegroups.com Hello everyone. Could you tell me how to round the number of seconds which

Re: [web2py] how to round the number of seconds

2011-06-25 Thread Bruno Rocha
mydate = request.now() mydate.strftime('%Y-%m-%d %H:%M:%S') -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sat, Jun 25, 2011 at 3:36 AM, dorasan portabled...@gmail.com wrote: Hello everyone. Could you tell me how to round the number of seconds which 'request.now' represents

Re: [web2py] how to round the number of seconds

2011-06-25 Thread portable dora
THANK YOU!!! 2011/6/25 Bruno Rocha rochacbr...@gmail.com mydate = request.now() mydate.strftime('%Y-%m-%d %H:%M:%S') -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sat, Jun 25, 2011 at 3:36 AM, dorasan portabled...@gmail.com wrote: Hello everyone. Could you tell me