我想使用djagno模型执行此类查询:
SELECT id, ( first+second+third ) FROM testTable
没有分组。 试图使用谷歌找到解决方案,但没有成功。
提前致谢,
答案 0 :(得分:6)
使用F()和 let x = moment.duration(moment(this.time1, "hh:mm A").add(moment(this.time2, "hh:mm A")));
let result = moment.utc(x.asMilliseconds()).format('HH:mm:ss');
:
annotate()