Added get day of year

Signed-off-by: Nick Wood <nick@thewhitewood.com>
amends