Time Stamp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • odin607
    New Member
    • Jun 2008
    • 19

    #1

    Time Stamp

    Code:
    ---.---  ---.--- ---.---
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Something like the following could do the job:

    [code=c]
    /* print all you numbers first */
    ...
    /* print the time stamp */
    fprintf(fd, ctime(time(NULL )));
    [/code]

    kind regards,

    Jos

    Comment

    • odin607
      New Member
      • Jun 2008
      • 19

      #3
      Code:
      ---.---  ---.--- ---.---

      Comment

      • gpraghuram
        Recognized Expert Top Contributor
        • Mar 2007
        • 1275

        #4
        Originally posted by odin607
        what other code do I need (libraries/declarations), Im not familiar with the code snippet

        looks promising though =x!

        You should use time.h and all C related time functions are in that header file.


        Raghu

        Comment

        Working...