WoW:API GetDate: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetDate to API GetDate without leaving a redirect)
 
(10 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<center>'''GetDate''' ''-Documentation by [[user:Zlixar|Zlixar]]-''</center>
{{wowapi|removed=1.3.0}}


When called, returns "Dec 20 2004". Possibly a broken date script, or returns a date that has unknown significance. (Compile date?)
Gets the build date of the current version of WoW, as listed on the bottom left of the login screen.


  date = GetDate();
  local date = GetDate()
----
;''Arguments''


:''none''
== Parameters ==
=== Arguments ===
: none


----
=== Returns ===
;''Returns''
* date (string) - This date will be the date WoW was released or built, some internal Blizzard date close to release.


:;date : String - As of 1.2.1, always returns "Dec 20 2004". May be broken or reporting a date of currently unknown significance.
== Example ==
<pre>
local date = GetDate() -- version 1.2.1
</pre>


----
; Result
;''Example''
 
local date = GetDate();
;''Result''
  "Dec 20 2004"
  "Dec 20 2004"


----
== Notes ==
;''Details''
* Removed in patch 1.3.0
 
:No hints as of yet as to what this function actually does. Has been suggested that it is broken, though it may be reporting a date of unknown significance. Perhaps the date of the release of the current version or the compile of the current version.
----
{{Template:WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < GetDate

Gets the build date of the current version of WoW, as listed on the bottom left of the login screen.

local date = GetDate()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

  • date (string) - This date will be the date WoW was released or built, some internal Blizzard date close to release.

Example[edit]

 local date = GetDate() -- version 1.2.1
Result
"Dec 20 2004"

Notes[edit]

  • Removed in patch 1.3.0