cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Incorrect return months
Incorrect return months
Sep 6, 2012 at 12:35pm UTC
Albuquerster
(50)
Hi!
I can not to get correct months in this function:
strftime(szData2, sizeof(szData2), "%m", localtime(&s.st_ctime));
Sometimes return not correct months.
Could you help me?
Sep 6, 2012 at 12:42pm UTC
Moschops
(7244)
If it returns an incorrect month, you have fed it incorrect data. Feed it correct data.
Topic archived. No new replies allowed.