if you have a db.define_table('mytable',Field('myts','datetime'))
you can do:
db.mytable.insert(myts=ts) # explicit
db.mytable.myts.default=ts # default for any insert
db.mytable.myts.update=ts # default for any update
here ts can be a ISO string, a datetime object or parse it yourself
ts=datetime.datetime.strptime('2009-12-07T12:48:05.205','%Y-%m-%dT%H:%M
%S')
On Dec 7, 7:04 am, David <[email protected]> wrote:
> I have a pretty generic question about timestamps.
>
> For instance if I have this GMT value "2009-12-07T12:48:05.205Z" How
> can I store this as a timestamp in web2py? Do I need to learn regex
> magic?
>
> Thanks,
> David
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.