AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
Time formating.
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
02-08-12, 01:36 PM
#
1
Grimsin
A Molten Giant
Join Date: Sep 2006
Posts: 990
Time formating.
So i have been using this to format to a normal 12 hour clock format based on my client time. How do i get it to format for 24 hours? like military time?
Code:
GUI_DashClock.text:SetText(("%d:%s"):format(tonumber(date("%I")), date("%M%p"):lower()))
__________________
"Are we there yet?"
GrimUI
[SIGPIC][/SIGPIC]
Grimsin
View Public Profile
Send a private message to Grimsin
Visit Grimsin's homepage!
Find More Posts by Grimsin
02-08-12, 02:38 PM
#
2
Ailae
A Rage Talon Dragon Guard
Join Date: Dec 2007
Posts: 318
Check here:
http://www.lua.org/pil/22.1.html
%I is hours in 12 h format, while %H is 24 h.
__________________
Oh, the simulated horror!
Ailae
View Public Profile
Send a private message to Ailae
Find More Posts by Ailae
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» Time formating.
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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