Jump to content
Extrude Ragu

llGetTimeOfDay and EEP

Recommended Posts

In my region, some objects use llGetTimeOfDay() to determine whether or not things like lights should be on or off.

EEP day cycles can have varying day lengths, offsets etc. how will this effect llGetTimeOfDay()?

Share this post

Link to post
Share on other sites

Rider Linden has a thread in the EEP forum which outlines the LSL hooks. According to that, llGetTimeOfDay should be EEP aware.



Nov 08, 2018

Gets the number of seconds, with sub-second precision, since environmental midnight.  llGetTimeOfDay returns this value for the current parcel, llGetRegionTimeOfDay returns the seconds since midnight for the entire region.


float llGetTimeOfDay()
float llGetRegionTimeOfDay( )



This function previously assumed a 4 hour day.  Day length is now configurable for regions and parcels.


Share this post

Link to post
Share on other sites

Take good look at the scripting example in the wiki section that Fenix just mentioned.  It's lovely and simple.  I've played with it quite a bit recently, as Qie and others have too.  The new EEP controls allow us to mess with the length of the day and also offer a much better way to decide when to toggle streetlights on and off.  It's all quite fun.  Remember, of course, that individual SL residents can always choose to override the shared environment settings -- that is, they can ignore EEP settings and just set their personal view to Midday or whatever.  

  • Like 2

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...