Current Date/Time

Monkey Forums/Monkey Programming/Current Date/Time

muruba(Posted 2012) [#1]
Hi guys, sorry if the question is stupid, but I can't find the way to get the current date/time, I can see there is a Millisec() function in mojo, however looking at the code it looks like it gives the delta time, so is there a way to get current date/time in Monkey? Thanks!

Cheers


therevills(Posted 2012) [#2]
Diddy has got the following commands for most targets:

[monkeycode] Function GetDayOfMonth:Int()
Function GetDayOfWeek:Int()
Function GetMonth:Int()
Function GetYear:Int()
Function GetHours:Int()
Function GetMinutes:Int()
Function GetSeconds:Int()
Function GetMilliSeconds:Int()[/monkeycode]


muruba(Posted 2012) [#3]
Thank you for a quick answer!


golomp(Posted 2012) [#4]
And thank you to manage Diddy and make it evoluate since all this time Therevills.
With Autofit these are the two library i always use.
(but maybe when Mnet will include sockets for Android it'll be the third one.
Good luck Martin, it's a very complicate task and i dont have
the level to help you. Sorry)
:)