Thank you* - seem to have figured out how to get it working:

Tick the 'Global expression' box and enter the 'import' lines needed - this runs the lines of code once before the field calculator expression runs. Thus:

In the 'Global expression' box:
    import time

And in the 'Field expression' box:
    value = time.strftime("%Y-%m-%d")

Gives "2012-09-29" in the selected column.


* and thanks also to GTranslate - awesome to be able to access resources in other languages.

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/How-to-use-fieldpycalculator-plugin-tp5005298p5005301.html">Re: How to use fieldpycalculator plugin?</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>