Thread Tools Display Modes
03-13-14, 02:31 AM   #1
wakolv
An Aku'mai Servant
Join Date: Aug 2009
Posts: 38
12 hour time format

someone help me with changing the dminimap 3 24hr time format, i want it 12hr time format to show.
  Reply With Quote
03-13-14, 04:27 AM   #2
Be3f.
A Theradrim Guardian
 
Be3f.'s Avatar
Join Date: Jan 2011
Posts: 65
Go to line 161 in dMinimap.lua and replace
Code:
local time = date("|c00ffffff%H|r:|c00ffffff%M|r")
with

Code:
local time = date("|c00ffffff%I|r:|c00ffffff%M|r")
__________________
-- Be3f.

Last edited by Be3f. : 03-13-14 at 04:30 AM.
  Reply With Quote
03-13-14, 02:01 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you also want to add an am/pm indicator:

Code:
local time = date("|c00ffffff%I|r:|c00ffffff%M|r%P")
Use %P (uppercase) for a lowercase am/pm, or %p (lowercase) for an uppercase AM/PM.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » 12 hour time format

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off