C Puzzle

Discussion in 'C' started by rjoshi82, Jun 12, 2007.

  1. rjoshi82

    rjoshi82 New Member

    Joined:
    Jun 12, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Get the components via mktime, tack them together, and there you go.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,345
    Likes Received:
    382
    Trophy Points:
    83
    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?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice