Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

XYText One Prim Clock

Dragger Lok
(loading ...)
Join date: 10 Sep 2006
Posts: 228
12-27-2008 14:47
Looking for an xytext clock that toggles back and forth from 12 to 24 hours with one other mod needed.

I leave my avatar here 24/7 so if I don't resopnd quickly I'm AFK.
Thanks
-Dragger Lok
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
12-27-2008 17:32
Not quite sure what you are looking for, but this clock can be changed 12/24 hour and set to any timezone and automatically update for daylight savings time.
It is more than one prim, as it contains four clocks, but you can delete the additional displays to get it down to 3 prims.

http://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=238089
Shirley Marquez
Ethical SLut
Join date: 28 Oct 2005
Posts: 788
12-27-2008 22:29
Basically, he wants one of the five-sided XYtext prims with an additional script to make it act as a clock. Four of the five sides would display the hours and minutes; the fifth would be blank, or you could use a custom XYtext texture to make the fifth side shown AM/PM or some such.

You could also do one with seconds using one of the older three-sides XYtext prims and the two characters per side version of XYtext. That has the disadvantage of much slower rezzing because you're no longer using just one texture. (The one character per side version uses a single texture and texture offsets; the two characters per side one uses a combination of texture changing and offsets.)

I've never seen such a clock but it certainly sounds as though it could be done. The original poster didn't say whether he wants seconds displayed, or just hours and minutes.
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
12-27-2008 23:20
Oh that is basically what my clock is, except I use three sided displays, so two prims for the time (including an am/pm indicator for 12 hour mode).
I use a third prim to display the name of the timezone. I suppose if one is really desperate for prims the timezone name could be removed.
Kephra Nurmi
winged bug
Join date: 12 Jan 2007
Posts: 180
12-28-2008 07:05
Moin ab,

From: ab Vanmoer
Not quite sure what you are looking for, but this clock can be changed 12/24 hour and set to any timezone and automatically update for daylight savings time.


Daylight saving is the only non trivial part, as there a hundreds of different laws depending on country or even on city. How did you solve this?

My Weltzeituhr I show in Apoda is using notecards for each city, that are precalculated 2007-20037 by zdump and awk based on international http://en.wikipedia.org/wiki/Zoneinfo database. So the object description of my clock might be 'berlin' to tell my Weltzeituhr to read the 'berlin' notecard on reset.

ciao,Kraehe
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
12-28-2008 08:15
The trouble with using pre-calculated daylight savings is that this can and will change; for instance the US and Canada lengthened the period of daylight savings this year, so any pre-calculateds notecards created in 2007 for US/Canada will be wrong in the future. Also of course this method limits the number of cities/countries one can support.

The only really effective way around this is to have some sort of central server for feeding timezone information, an added benefit is that it is really easy to add additional timezones, last week someone wanted Kuwait, a timezone I had not previously supported, 15 minutes later I had updated the server and given her the timezone code to put in the clock description or config notecard, depending on the clock model.

I use this technique for all my clocks, both digital and analogue (dial), a few examples:
http://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=531368
http://www.xstreetsl.com/modules.php?name=Marketplace&file=images&ItemID=479005
http://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=238089

The timezones I currently support:
http://www.absemporium.com/timezones.html

Regards,
ab
Kephra Nurmi
winged bug
Join date: 12 Jan 2007
Posts: 180
12-29-2008 05:56
Moin Ab,

thanks for the gift. Deceiding for 3 xy3text prims per line instead of an xz10prim, gave the display of your clock has a good and clear readability. But I already have my own Weltzeituhr eating prims on my house wall in Apoda.

From: someone
The only really effective way around this is to have some sort of central server for feeding timezone information


True, but then this server needs to be up for the next 30 years.

I guess your server is using the same zoneinfo database that I use for my pre generated notecard. I dont sell my clocks, but if I would do, I would need to add the script to generate the notecards and the resulting product would be much more complicated than your ready to use clock.

ciao,Kephra

PS: I'll send you my German WWII aircraft cockpit clock in return ;) It does not do daylight saving, but uses touch to set the clock. The texture of this clock was published under GPL by me for the Heinkel 162 aircraft in the FlightGear aircraft simulator. Drop me a note, if you like to sell it, so I could drop you a full perms texture.