Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 04-25-08 10:37 PM
Pictures
File Info
Updated:04-25-08 10:37 PM
Created:unknown
Downloads:3,809
Favorites:5
MD5:

zimClock

Version: 1.0.71427
by: Zimran [More]

Notice: This mod has been discontinued and replaced by zimMinimap.

Description:
A lightweight addon to display your current local date/time under the minimap. No configuration, no saved variables; it just works. The coordinates in the screenshot are from my zimCoords mod.

Known Issues:
None

1.0.71427 - 25 April 2008
Removed the AddonLoader stuff.

v1.0.71378 - 25 April 2008
Added license and disclaimer.
Changed versioning to make it easier to maintain consistency with svn.

v1.5 - Removed AddonLoader requirement (it's still compatible). I don't know why I did that, I was tired.

v1.4 - 03 April 2008
Added AddonLoader compatibility.

v1.3 - 29 March 2008
Changed the code so that if the client is enUS it will use the original mm/dd hh:mm xm format, otherwise it will use the client determined date/time format. Changed the name to zimClock because the other name didn't really describe the mod well.

v1.2 - 25 March 2008
Added the original format string back to the code as a comment - if you prefer the old format simply comment out the new string and uncomment the old.

v1.1 - 25 March 2008
Changed to a slightly smaller font and changed the default date/time format to something that should be appropriate for non enUS locales.
Post A Reply Comment Options
Unread 07-20-08, 08:57 AM  
SomeLock
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Re: Re: Changing the default display

Originally posted by Zimran
Hiya and thanks, it's nice to see that others still find it useful. My versioning is all crazy since I was a total noob when I started writing mods (still am pretty much ). Just FYI, I combined this with my coordinate display mod, added minimap scrolling and released it as zimMinimap. Any of the modules can be disabled via the .toc - I moved the stuff around a little bit so it fits in better with the new clock IMO.

Thanks for the link to the time format stuff, I thought it would be cool to have an options dialogue where people could add their own custom format but I've been too lazy so far and it's pretty easy to just edit the lua *shrug*.

-- Take care, Zim
MINIMAP SCROLLING!?! That's pretty cool right there! Does it work inside instances? I gonna have to go check that out.
SomeLock is offline Report comment to moderator  
Reply With Quote
Unread 07-18-08, 11:35 AM  
Zimran
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 17
Uploads: 12
Re: Re: Re: Changing the default display

Originally posted by SomeLock
I don't see a newer version than 1.0 posted, just wanted to mention. I had stopped here to get the link to give a friend and wanted to post a comment and saw these but even downloading it I still get V1.0.

Comment I wanted to make was I had modified the date variable to show the short day of the week. I find it handy to know when the fishing extravaganza is on.

For anyone else that wanted to change the format you can find a complete list of Lua date/time system variables at http://www.lua.org/pil/22.1.html. The line in V1.0 that needs to be changed is fmt = "%m/%d %I:%M %p". To add the short day of the week name (Tue for example) I changed the above to fmt = "%a %m/%d %I:%M %p".

Thanks for the addon Zimran, even with Blizz adding local time info I'll still be using this mod because of the day/date.
Hiya and thanks, it's nice to see that others still find it useful. My versioning is all crazy since I was a total noob when I started writing mods (still am pretty much ). Just FYI, I combined this with my coordinate display mod, added minimap scrolling and released it as zimMinimap. Any of the modules can be disabled via the .toc - I moved the stuff around a little bit so it fits in better with the new clock IMO.

Thanks for the link to the time format stuff, I thought it would be cool to have an options dialogue where people could add their own custom format but I've been too lazy so far and it's pretty easy to just edit the lua *shrug*.

-- Take care, Zim
Zimran is offline Report comment to moderator  
Reply With Quote
Unread 07-18-08, 12:36 AM  
SomeLock
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Changing the default display

I don't see a newer version than 1.0 posted, just wanted to mention. I had stopped here to get the link to give a friend and wanted to post a comment and saw these but even downloading it I still get V1.0.

Comment I wanted to make was I had modified the date variable to show the short day of the week. I find it handy to know when the fishing extravaganza is on.

For anyone else that wanted to change the format you can find a complete list of Lua date/time system variables at http://www.lua.org/pil/22.1.html. The line in V1.0 that needs to be changed is fmt = "%m/%d %I:%M %p". To add the short day of the week name (Tue for example) I changed the above to fmt = "%a %m/%d %I:%M %p".

Thanks for the addon Zimran, even with Blizz adding local time info I'll still be using this mod because of the day/date.
SomeLock is offline Report comment to moderator  
Reply With Quote
Unread 03-25-08, 08:16 PM  
JEndahl
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Changing the default display

Perfect solution Zimran! Many thanks for the clear description and the quick response.
JEndahl is offline Report comment to moderator  
Reply With Quote
Unread 03-25-08, 05:57 PM  
Zimran
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 17
Uploads: 12
Re: Changing the default display

Originally posted by JEndahl
This mod is just what I've been looking for, but... Is there anyway to customize the information that is displayed? Right now, I'm getting the long date and a 24 hour clock. If I could limit the display to just what is in the screenshot, that would be ideal. Thanks.
There are actually a couple of ways to do this - one would be to revert to the 1.0 version or you could edit the mod.

I changed it to make the mod available to locales other than enUS but I prefer the layout in the version 1.0. The only other change was to make the font a little smaller.

To modify 1.1 to display the old format you would need to change line 7 from:
Code:
f.text:SetText(date("%c"))
to
Code:
f.text:SetText(date("%m/%d %I:%M %p"))
I'm hesitant to make any kind of customization available in game because I want to keep everything as small and simple as possible and I'm not much of a coder - just kind of winging it since I couldn't find anything that I liked.

Thanks for the feedback.

UPDATE: I posted a new version (1.2) that has both lines in the file - the locale agnostic line is enabled by default but to change to the old format one simply needs to comment out that line and uncomment the line containing the original format string.
Last edited by Zimran : 03-25-08 at 06:14 PM.
Zimran is offline Report comment to moderator  
Reply With Quote
Unread 03-25-08, 05:36 PM  
JEndahl
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Changing the default display

This mod is just what I've been looking for, but... Is there anyway to customize the information that is displayed? Right now, I'm getting the long date and a 24 hour clock. If I could limit the display to just what is in the screenshot, that would be ideal. Thanks.
Last edited by JEndahl : 03-25-08 at 05:37 PM.
JEndahl is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: