date() - day of year returns 0 on device

Hi,
I read careful https://electricimp.com/docs/squirrel/system/date/ , but on
DEVICE:
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 ?

Comments

Sign In or Register to comment.