[Qgis-developer] datetime difference between 2 datetimes in Field Calculator

Richard Duivenvoorde rdmailings at duif.net
Tue May 24 01:34:16 PDT 2016


Nyall Dawson schreef op 2016-05-24 09:21:

> FYI - as of https://github.com/qgis/QGIS/commit/8ddcf76 you can now
> just directly calculate date/time/datetime differences using "-", eg
> 
> to_date('2016-03-04')-to_date('2016-03-01')
> 
> This will return an interval object which you can then use seconds(),
> minute(), etc on.

kewl! Thanks again :-)


More information about the Qgis-developer mailing list