Results 1 to 10 of 19

Thread: date and time script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Im not a big fan of hacks to do something as simple as getting "date and time", so just do it properly: add the function to libcod if it doesn't exist yet

    But a quick skip over vorons code shows this tho:

    PHP Code:

        
    {"getsystemtime"gsc_utils_getsystemtime0},
        {
    "getserverstarttime"gsc_utils_getserverstarttime0},
        {
    "getlocaltime"gsc_utils_getlocaltime0}, 
    https://github.com/voron00/libcod/bl...r/gsc.cpp#L212

    And since code is documentation, just look what it does:

    https://github.com/voron00/libcod/bl...utils.cpp#L321
    timescale 0.01

  2. The Following 3 Users Say Thank You to kung foo man For This Useful Post:

    buLLeT_ (13th June 2018),caldas (13th June 2018),kubislav23 (13th June 2018)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •