Menu

#30 Function to return actual time

open
nobody
Functions (18)
7
2008-03-25
2008-03-25
Fliggerty
No

It would be very useful to have a function that will return the actual time.
March 22 2008, 3:34 PM would be a value of 0322081534

I believe this could be used as a way to write data to a file, and retrieve data from the proper file regardless of which save game or character is being used.

Discussion

  • Fliggerty

    Fliggerty - 2008-03-25
    • priority: 9 --> 7
     
  • Darksecond

    Darksecond - 2008-05-10

    Logged In: YES
    user_id=1634607
    Originator: NO

    maybe change this into more than one function. and make seperate date and time functions.

    like: xGetTime will return the actual time, for example 7:34PM would be 1934, and 4:35AM would be 0435
    and the same for xGetDate, it will return the current date in YYYYMMDD.
    i think this is a bit more usefull than one big string/value.

    maybe even provide comparison functions, so you can compare dates, and return depending on the outcome, -1, 0, or 1 depending on if it was less, the same, or more.

     

Log in to post a comment.