From Bohemia Interactive Community
Broken notes from command page
bobtom - March 6 2014
If it's dark out the command will return 0, likewise when it's light the command will return 1.
--Lester (talk) 20:32, 7 March 2014 (CET)Lester
In the twilight the value is between 0 and 1.