Menu

#13 display time on png graphics

open
nobody
5
2004-01-15
2004-01-15
Eric
No

Could you please display the time incriments on the png
image of the trqaffic over last days.

thnaks

Eric

Discussion

  • Eric

    Eric - 2004-01-15

    Logged In: YES
    user_id=661106

    I mean the hour increments.

     
  • David R Hinkle

    David R Hinkle - 2004-04-09

    Logged In: YES
    user_id=863707

    I should probably at least add a label every four hours or so...

     
  • Aitor Ruiz de Samaniego

    Logged In: YES
    user_id=570538

    In GraphData(..) function add a variable:
    time_t WriteTime;
    Give the value:
    WriteTime = time(NULL);
    And display it:
    gdImageString(im, gdFontSmall, 2*XWIDTH/3,YHEIGHT-20,
    ctime(&WriteTime),black);
    Perhaps you want put the "Peak rate" at:
    gdImageString(im, gdFontSmall, XWIDTH/3+XOFFSET/2,
    YHEIGHT-20, Buffer2, black);

     

Log in to post a comment.