Results 1 to 10 of 19

Thread: date and time script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Private
    Join Date
    Dec 2016
    Posts
    30
    Thanks
    5
    Thanked 5 Times in 5 Posts
    do you think this can affect server performance?


    --

    i made a small change and recompile voron00 libcod

    PHP Code:
    void gsc_utils_getlocaltime()
    {
            
    time_t timer;
            
    struct tm *timeinfo;

            
    time(&timer);
            
    timeinfo localtime(&timer);

            
    char timestring[256];
            
    strftime(timestringsizeof(timestring), "%d/%m/%Y %H:%M"timeinfo);
            
    char stripped_time[128];

            
    strncpy(stripped_timetimestringsizeof(stripped_time));
            
    stripped_time[strlen(timestring) - 1] = '\0';

            
    stackPushStringstripped_time );

    Last edited by caldas; 16th June 2018 at 12:58.

Posting Permissions

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