[Babaseannounce] New functions for hydrological year and season
Niki Learn
nlearn at princeton.edu
Fri Aug 27 09:44:21 EDT 2010
We have two new functions available in babase for converting dates to
hydrological year and season. They are as follows:
hydroyear() Takes a date and returns the hydrological year.
http://papio.biology.duke.edu/babase_system_html/re08.html
season() Takes a date and returns a code for the season (wet/wetter vs.
dry).
http://papio.biology.duke.edu/babase_system_html/re09.html
Thanks Catherine for suggesting and Karl for implementing!
Another handy date function (an oldie but goodie) = rnkdate() Take a date
and returns the first of the month (e.g., an agonism that took place on
2009-08-27 becomes 2009-08-01) - great for matching events within a month up
by say the date on which an animal was ranked (always the first of the
month) or for just getting all dates into a month/year-equivalent format for
use in pivot tables.
Enjoy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://eeblistserv.Princeton.EDU/pipermail/babaseannounce/attachments/20100827/577b41d3/attachment.html
More information about the Babaseannounce
mailing list