C Puzzle

rjoshi82's Avatar
Newbie Member
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.
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
Get the components via mktime, tack them together, and there you go.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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?