Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
Time Stamp
Time Stamp
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
odin607
New Member
Join Date:
Jun 2008
Posts:
19
#1
Time Stamp
Jun 24 '08, 01:00 PM
Code:
---.--- ---.--- ---.---
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#2
Jun 24 '08, 01:07 PM
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
Post
Cancel
odin607
New Member
Join Date:
Jun 2008
Posts:
19
#3
Jul 21 '08, 04:06 AM
Code:
---.--- ---.--- ---.---
Comment
Post
Cancel
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#4
Jul 21 '08, 04:31 AM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment