XbabylonX Posted September 11, 2017 Share Posted September 11, 2017 Hello all, I was wondering, is there any way to get the time displayed in the client window? Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 (edited) Which time? The viewer always displays SLT in the upper right corner of your screen, and your own computer displays your local time in the lower right. What other time do you need? If you really do need some other time, you can either write yourself a clock script and build an appropriate HUD with it, or -- easier -- look for a freebie clock in Marketplace or in world and attach it to your screen as a HUD. Edited September 11, 2017 by Rolig Loon Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 16 minutes ago, Rolig Loon said: Which time? The viewer always displays SLT in the upper right corner of your screen, and your own computer displays your local time in the lower right. What other time do you need? If you really do need some other time, you can either write yourself a clock script and build an appropriate HUD with it, or -- easier -- look for a freebie clock in Marketplace or in world and attach it to your screen as a HUD. Yes, the viewer's time for SLT Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 OK, then that's in the upper right corner of your screen now. Problem solved. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 2 minutes ago, Rolig Loon said: OK, then that's in the upper right corner of your screen now. Problem solved. Quote is there any way to get the time displayed in the client window? Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 5 minutes ago, XbabylonX said: If you really do need some other time, you can either write yourself a clock script and build an appropriate HUD with it, or -- easier -- look for a freebie clock in Marketplace or in world and attach it to your screen as a HUD. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 Just now, Rolig Loon said: If you really do need some other time Why quoting the above when we already dealt that I need the one in the viewer's window? Link to comment Share on other sites More sharing options...
Drake1 Nightfire Posted September 11, 2017 Share Posted September 11, 2017 6 minutes ago, XbabylonX said: Why quoting the above when we already dealt that I need the one in the viewer's window? need it where? its already displayed on your viewer for you to see.. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 Just now, Drake1 Nightfire said: need it where? its already displayed on your viewer for you to see.. To shout it in local Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 We're going around and around, so one of us is missing something important here. Let's try again. You already have SLT in the viewer's window. It's in the upper right corner of your screen. If you really need a second display that shows you the same thing, you can either write yourself a clock script and build a HUD with it, or you can take the easy way out and find a freebie clock HUD that someone else has made. If that's somehow not what you are asking for, please clarify. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 2 minutes ago, Rolig Loon said: We're going around and around, so one of us is missing something important here. Let's try again. You already have SLT in the viewer's window. It's in the upper right corner of your screen. If you really need a second display that shows you the same thing, you can either write yourself a clock script and build a HUD with it, or you can take the easy way out and find a freebie clock HUD that someone else has made. If that's somehow not what you are asking for, please clarify. It looks like nothing from here http://wiki.secondlife.com/wiki/Category:LSL_Time returns the exact datetime the viewer's show, if Im not mistaken. Link to comment Share on other sites More sharing options...
Drake1 Nightfire Posted September 11, 2017 Share Posted September 11, 2017 5 minutes ago, XbabylonX said: To shout it in local For who? You really need to state why you need this and exactly what you want it to do. You want something that will shout SLT in local chat for what purpose? Eveyone in SL has the SLT in the upper right corner of their viewer.. Why would you need to shout it in local chat? Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 2 minutes ago, Drake1 Nightfire said: For who? You really need to state why you need this and exactly what you want it to do. You want something that will shout SLT in local chat for what purpose? Eveyone in SL has the SLT in the upper right corner of their viewer.. Why would you need to shout it in local chat? I have this fetish Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 (edited) 6 minutes ago, XbabylonX said: It looks like nothing from here http://wiki.secondlife.com/wiki/Category:LSL_Time returns the exact datetime the viewer's show, if Im not mistaken. Aha! So you don't want to display a clock? You just want to grab the current SLT for some reason? Then yes, use llGetWallclock and convert from its time in seconds to a time expressed in hours, minutes, and seconds. If you want the date too, you'll have to use llGetDate and then mess with the offset from GMT to SLT, which is a little harder than it sounds but not impossible. You'll find routines in the wiki for that. Edited September 11, 2017 by Rolig Loon 1 Link to comment Share on other sites More sharing options...
Drake1 Nightfire Posted September 11, 2017 Share Posted September 11, 2017 Just now, XbabylonX said: I have this fetish It's not even Friday.... Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 1 minute ago, Drake1 Nightfire said: It's not even Friday.... Thats one more reason I need to shout to myself the viewer's datetime, to remind me that its not Friday indeed. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 3 minutes ago, Rolig Loon said: Aha! So you don't want to display a clock? You just want to grab the current SLT for some reason? Then yes, use llGetWallclock and convert from its time in seconds to a time expressed in hours, minutes, and seconds. Perhaps the topic's title confused the things. Yes this returns the time, I assume that using llGetDate( ) will return the date of the viewer's correctly, right? Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 Yes, if you happen to be in London. Otherwise, you will need to write a little bit of code to apply the offset to SLT, as I noted above. San Francisco is always 8 hours behind London (except during the transition to Daylight Savings Time, which occurs a week later in the UK than in the US. Very confusing. Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 3 minutes ago, Rolig Loon said: Yes, if you happen to be in London. Otherwise, you will need to write a little bit of code to apply the offset to SLT, as I noted above. San Francisco is always 8 hours behind London (except during the transition to Daylight Savings Time, which occurs a week later in the UK than in the US. Very confusing. The reason that I want to get the viewer's datetime which is common(?) for everyone. Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 In that case .... the SLT part is settled, since you can get it from llGetWallclock, but the date is a bear. You may want to take a completely different route, starting with llGetUnixTime. Tak a look at http://wiki.secondlife.com/wiki/Unix2PST_PDT 1 Link to comment Share on other sites More sharing options...
XbabylonX Posted September 11, 2017 Author Share Posted September 11, 2017 52 minutes ago, Rolig Loon said: In that case .... the SLT part is settled, since you can get it from llGetWallclock, but the date is a bear. You may want to take a completely different route, starting with llGetUnixTime. Tak a look at http://wiki.secondlife.com/wiki/Unix2PST_PDT Thanks, Ill take a look at it too! Link to comment Share on other sites More sharing options...
KT Kingsley Posted September 11, 2017 Share Posted September 11, 2017 You might also want to look at llGetTimestamp, which returns the standard UTC date and time string. The helper functions linked on that page could also prove useful. Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 11, 2017 Share Posted September 11, 2017 10 minutes ago, KT Kingsley said: You might also want to look at llGetTimestamp, Also a good possibility, although you would still need to jump through hoops to get the correct date in SLT. Link to comment Share on other sites More sharing options...
Xiija Posted September 12, 2017 Share Posted September 12, 2017 free clock with a script you can use in it.... https://marketplace.secondlife.com/p/In-World-Time/7126226 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now