git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59291 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -290,6 +290,12 @@ d.rast.leg b172
d.rast.leg it172
</pre></div>
+We can compute the day of year from a specific date in Python shell:
+<div class="code"><pre>
+>>> import datetime
+>>> datetime.datetime(2014, 6, 21).timetuple().tm_yday
+172
+</pre></div>
<h2>SEE ALSO</h2>