C Puzzle

Newbie Member
12Jun2007,16:46   #1
rjoshi82's Avatar
Hi All,

Can any body tell me how can I create a file in C with naming convention as
YYMMDDHHmm.DAT.
where YY -> Year
MM-> Month
DD-> Day
HH->Hour
mm->minutes
A quick response will be highly appreciable
Thanks.
Team Leader
12Jun2007,18:08   #2
DaWei's Avatar
Get the components via mktime, tack them together, and there you go.
Go4Expert Founder
12Jun2007,20:50   #3
shabbir's Avatar
How does this seem to you as a puzzle of C. Are you trying to create some puzzle and store the data of that puzzle or what?