|
-
July 13th, 2005, 01:35 AM
#1
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
-
July 13th, 2005, 01:52 AM
#2
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.
-
July 13th, 2005, 06:01 AM
#3
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
-
July 13th, 2005, 06:11 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|