Is there something like GetDate ?

About Monkey 2 Forums Monkey 2 Programming Help Is there something like GetDate ?

This topic contains 5 replies, has 4 voices, and was last updated by  scurty 1 year, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11298

    Pakz
    Participant

    For getting a unique Random Seed in MonkeyX I use the GetDate command with the Seed command.

    I noticed I can not find anything to get the current second or day in Monkey2. Is this still to be added?

    #11299

    Mark Sibly
    Keymaster

    Actually, there’s no GetDate as yet, will add some more time stuff soon.

    SeedRnd Millisecs() usually does the trick, although it measures app execution time so it sort of depends on being used after ‘hit any key to begin’ or something, otherwise it may return similar values if just used in a set place after app start.

    #11301

    Pakz
    Participant

    I am using the Microseconds command at the moment. It seems to give some different start up results.

    I liked the command in Java that gave the milliseconds passed from 197x or so(was it unix time?) It was a Long integer value. Might this be possible to add also?

    #11311

    Mark Sibly
    Keymaster

    milliseconds passed from 197x or so

    Nice idea…

    http://currentmillis.com/

    #11364

    SamFisher
    Participant

    Maybe this?!

    #11365

    scurty
    Participant

    1.1.08!
    1.1.08!
    1.1.08!

    Sorry got excited for Open Source there for a blitz.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.