-
August 14th, 2006, 09:12 PM
#1
Date & Time
Hi, I needed to extract current machine date in my application. Can "_strdate" be used in Linux? Also, is there any open-source Time & Date library like MFC's CTime?
Thanks in advance.
-
August 15th, 2006, 04:11 AM
#2
Re: Date & Time
_strdate is non-portable.
time localtime, gmtime and ctime strftime and asctime are ANSI and POSIX standard.
Last edited by SuperKoko; August 15th, 2006 at 04:46 AM.
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!
-
August 15th, 2006, 04:17 AM
#3
Re: Date & Time
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!
-
August 15th, 2006, 04:45 AM
#4
Re: Date & Time
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!
-
August 15th, 2006, 05:05 AM
#5
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
|