Any way to get current day month year hour minute?

Monkey Forums/Monkey Programming/Any way to get current day month year hour minute?

ziggy(Posted 2013) [#1]
Is there any way to get current day month year hour minute? I need a cross platorm way to check for current day


therevills(Posted 2013) [#2]
I think Diddy has most of the targets covered.


ziggy(Posted 2013) [#3]
Thanks, will give it a look!


Tibit(Posted 2013) [#4]
Does not the latest version have DateTime built in? I think I saw it in the source code next to millisec.


Shinkiro1(Posted 2013) [#5]
Yes, the app class now has a GetDate method.


ziggy(Posted 2013) [#6]
The app class of Diddy? mmm... why is it on the app class? does the date depend on the app? It looks like a design flaw if you ask me (trying to be constructive!)
I'll take a look to the sources. thanks for the heads up!


Shinkiro1(Posted 2013) [#7]
The app class of monkey.


ziggy(Posted 2013) [#8]
Aaaah ok, it's a function on the app module, but not in the App class. That makes more sense. That was confusing me. Glad to see it's built-in. Thanks!


therevills(Posted 2013) [#9]
Cool! I didnt know that it was built in either! More native code to remove from Diddy :)


Tibit(Posted 2013) [#10]
But it is undocumented I think. So please post how to properly use it and it'll help the rest of us in having to go through testing it too! Even tough I assume it is pretty simple stuff.


ziggy(Posted 2013) [#11]
It is documented into the app module page on version 68


Tibit(Posted 2013) [#12]
Oh my docs say v60. Looks like I need an update :)