开发者

How to get latest timestamp in a column?

I have a timestamp column in my t1 table. The format is as: 2009-12-24 06:17:34

There are many entries as such.

How do w开发者_StackOverflow中文版e query from views to get the latest timestamp


ModelClass.objects.latest(timestamp_field)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜