开发者

How to get latest timestamp in a column?

开发者 https://www.devze.com 2022-12-15 05:40 出处:网络
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.

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

精彩评论

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