Download
(16Kb)
Download
Updated: 11-27-12 06:00 PM
Pictures
File Info
Updated:11-27-12 06:00 PM
Created:10-31-10 03:15 PM
Downloads:5,113
Favorites:61
MD5:

shClock  Popular! (More than 5000 hits)

Version: v2.3
by: shUI [More]

shClock
An extremely light-weight data broker addons that monitors and displays time/date related information

Why use this addon instead of some of the other famous system monitors? Simple: elegance, ease of use, and efficiency. Other addons similar to shClock are extremely "busy" and highly inefficient when it comes to coding.

IMPORTANT: You must have a data broker display addon in order to enable this addon. I recommend Docking Station or you can find a list of other LDB display addons here. Changing the fonts of the tooltips is handled via a tooltip addon. I highly recommend using TipTac.

This addon displays and has the following options:

  • Server Time
  • Local Time
  • UTC Time
  • Date
  • Locale
  • Shows pending calendar invites in tooltip and broker (updated in real time)
  • Option: for showing 24-hour or 12-hour formatted time
I was completely baffled when I saw some coding of other author's data broker addons that displayed this information. My goals in creating this addon are:
  • Make the code as efficient as possible and to maintain < 10kb of memory usage AND < 0.7 cpu_cycles/second w/o loss in funtionality.
  • Compared to other LDB clock addons, MUCH more efficient (memory and cpu) with same basic functionalities
  • Be visually appealing and easy to read
  • Be updated in real time via the tooltip AND data broker text
  • Display relevant data that is important (NO FLUFF or Techno Babble)

Bug Reports and/or Requests:
All bug reports, requests (with this addon or another), errors, suggestions, and problems will be handled via the forum-comments page.

If you liked this mod, please check out my other addons:
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates

Click here to lend your support!

v2.3
- TOC bump
-----------------
v2.2
- Fixed another stupid logic mistake: find("0",s) to tonumber(s) < 10
------------------
v2.1
- Fixed and optimized logic mistake I made when converting to standard time from military
------------------
v2.0
- Complete overhaul of code and made it much more efficient using LUA based functions
- Optimized CPU usage to be between 0.36 and 0.69 cpu_cycles/second
- Optimized MEM usage to be less than 10kb
- TOC bump to MoP
- NO loss in functionality :)
------------------
v1.3
- rewrote lots of code for formatting the time
- REMOVED option to display seconds (causing a memory leak and I can't figure out why)
- ADDED option to display pending calendar invites in broker display and tooltip
- optimized all code
--------------------
v1.2
- optimized onupdate handler
- added option to show seconds or not show seconds in data broker
- added option for left clicking (time manager) and right clicking (calendar)
---------------------
v1.1
- fixed the issue with not formatting the time correctly
- added 24 hour support (check lua file to turn it on and off)
- optimized some code
Optional Files (0)


Post A Reply Comment Options
Unread 07-01-11, 01:20 PM  
Shadowcall
A Cyclonian
 
Shadowcall's Avatar
AddOn Author - Click to view AddOns

Forum posts: 44
File comments: 58
Uploads: 1
hi, long time no see
here again with requests
can you add the time until for tol barad and winterspring starts, or at least for tol barad?

p.s. i will also like to see the sec
Last edited by Shadowcall : 07-01-11 at 01:21 PM.
Report comment to moderator  
Reply With Quote
Unread 10-22-12, 08:44 AM  
kaustos
A Kobold Labourer
 
kaustos's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 42
Uploads: 1
New version shows the time as "-3:42am" when the actual time (central, both local and server for me) is 9:42am, 2:42 utc o.O
Report comment to moderator  
Reply With Quote
Unread 10-22-12, 08:57 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally Posted by kaustos
New version shows the time as "-3:42am" when the actual time (central, both local and server for me) is 9:42am, 2:42 utc o.O
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 10-23-12, 08:29 AM  
kaustos
A Kobold Labourer
 
kaustos's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 42
Uploads: 1
Originally Posted by shUI
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
The tooltip and data broker were the same; -3:42am server/local, 2:42 utc.

edit: http://imgur.com/ZXrZB - actual time here is 10:02am server/local. this is 2.1.
Last edited by kaustos : 10-23-12 at 10:32 AM.
Report comment to moderator  
Reply With Quote
Unread 10-24-12, 11:39 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally Posted by kaustos
Originally Posted by shUI
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
The tooltip and data broker were the same; -3:42am server/local, 2:42 utc.

edit: http://imgur.com/ZXrZB - actual time here is 10:02am server/local. this is 2.1.
Ya I know, stupid stupid mistake again. I think I fixed it all now!
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-28-12, 08:52 AM  
akgis
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 80
Uploads: 4
Option to show 24hours time instead of AM/PM thingy doesnt work.
__________________
Report comment to moderator  
Reply With Quote
Unread 11-28-12, 09:08 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally Posted by akgis
Option to show 24hours time instead of AM/PM thingy doesnt work.
Hmm, can you give me a better explanation of the error...b/c I am not able to recreate it.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 11-28-12, 12:16 PM  
akgis
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 80
Uploads: 4
Originally Posted by shUI
Originally Posted by akgis
Option to show 24hours time instead of AM/PM thingy doesnt work.
Hmm, can you give me a better explanation of the error...b/c I am not able to recreate it.
left click toggling the blizzard clock options with also includes the alarm. clicking 24hours mode doesnt do anything it still shows in AM/PM mode
__________________
Report comment to moderator  
Reply With Quote
Unread 11-28-12, 04:11 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Well, as stated in the addon info page, I completely go around the blizzard time manager and write my own code based on local machines time stamps. The only time I'll call blizzard code is when I'm trying to get time from server. At the top of the shClock.lua - there are two config options, change the following code:

Code:
local showMilitary = false
to

Code:
local showMilitary = true
Save the lua file and reload your UI, done.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 07-17-18, 05:30 PM  
weavil
A Deviate Faerie Dragon

Forum posts: 14
File comments: 95
Uploads: 0
dead

shClock\shClock-2.0.lua:92: attempt to call upvalue 'numInvites' (a nil value)
shClock\shClock-2.0.lua:92: in function <shClock\shClock.lua:88>

Locals:
self = <unnamed> {
0 = <userdata>
}
elap = 7.1110005378723
(*temporary) = nil
(*temporary) = "attempt to call upvalue 'numInvites' (a nil value)"
timeController = 7.1170005379245
invites = 0
numInvites = nil
Report comment to moderator  
Reply With Quote
Unread 08-07-18, 12:09 PM  
Elenya
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Blizzard changed the name of one of the functions.

You just need to change line 18 of shClock.lua from

local numInvites = CalendarGetNumPendingInvites

to

local numInvites = C_Calendar.GetNumPendingInvites
Report comment to moderator  
Reply With Quote
Unread 08-07-18, 04:49 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally Posted by Elenya
Blizzard changed the name of one of the functions.

You just need to change line 18 of shClock.lua from

local numInvites = CalendarGetNumPendingInvites

to

local numInvites = C_Calendar.GetNumPendingInvites
Thanks, good call. Will update soon.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 08-17-18, 06:44 PM  
Elenya
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
My pleasure, thanks for the addon!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: