Jump to content

Clock


XbabylonX
 Share

You are about to reply to a thread that has been inactive for 2574 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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 by Rolig Loon
Link to comment
Share on other sites

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

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

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

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

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

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 by Rolig Loon
  • Thanks 1
Link to comment
Share on other sites

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

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

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

You are about to reply to a thread that has been inactive for 2574 days.

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
 Share

×
×
  • Create New...