[QGIS Commit] [qgis/Quantum-GIS] c467e7: Add expression functions for handling date/time:

GitHub noreply at github.com
Sat Jun 30 03:42:53 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/qgis/Quantum-GIS
  Commit: c467e79f3cde7bb079912bf88e1d03059813f897
      https://github.com/qgis/Quantum-GIS/commit/c467e79f3cde7bb079912bf88e1d03059813f897
  Author: Nathan Woodrow <woodrow.nathan at gmail.com>
  Date:   2012-06-30 (Sat, 30 Jun 2012)

  Changed paths:
    M python/core/qgsexpression.sip
    M src/core/qgsexpression.cpp
    M src/core/qgsexpression.h
    M src/core/qgsexpressionparser.yy
    M tests/src/core/testqgsexpression.cpp

  Log Message:
  -----------
  Add expression functions for handling date/time:

    - year,month,day,hour,minute,second extraction
    - new QgsInterval objects - handles time amounts
    - age() function returns the difference between two  datetimes
    - $now returns the current date and time
    - support for datetime - interval = new datetime
    - tointerval, todate, totime functions
    - tests ;)





More information about the QGIS-commit mailing list