date() - day of year returns 0 on device

I read careful , but on
now = date();
server.log("Day of Year: "+now.yday)
Returns always zero.
The same code on AGENT is working ...
Documentation says: "The usec key is available only when date() is called from within agent code", but nothing about YDAY.
Am I missing something ?


Sign In or Register to comment.