CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Posts
    20

    please tell me about the definition of "Date Structrue"

    I have read some book for the concept.but it is different between different books .I want to know the good answer base on the person who hold rich experience.
    thank you

  2. #2
    Join Date
    May 2005
    Posts
    99

    Re: please tell me about the definition of "Date Structrue"

    Well I do not have a very rich experience, still if it helps have a look.
    There are various formats available. It depends whether you are picking it up from system library or compiler library. System implementation may differ so you should stick to compiler format.
    C++ provides a header file <ctime> which you can use.
    For detail explanation of formatting look at : http://msdn.microsoft.com/library/de..._.wcsftime.asp

    And if you want to use system part still and you are on unix or related platform just have a look at man pages.

  3. #3
    Join Date
    Dec 2004
    Location
    Marlyand, USA
    Posts
    66

    Re: please tell me about the definition of "Date Structrue"

    The problem with the date is that no one can agree on what a set of valid date formats are. That is one primary reason why C++ lacks any built-in date type beyond what is supplied by C. Not impressed? Try writing your own!

    Free code: http://sol-biotech.com/code/.

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw

  4. #4
    Join Date
    Jun 2002
    Posts
    1,417

    Re: please tell me about the definition of "Date Structrue"

    All the functions in time.h are ANSI standard and supported by every ANSI standard-compliant compiler. There are, of course, a lot of other date formats which are operating system dependent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured