•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 403,518 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,844 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 141 | Replies: 3
![]() |
mktime() and localtime()
Both in <ctime>
Both in <ctime>
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
That's what mktime does - RTM.
localtime returns a struct tm
you then do tm->tm_hr += 5;
you then do mktime() on that to fix any day rollover (for example).
localtime returns a struct tm
you then do tm->tm_hr += 5;
you then do mktime() on that to fix any day rollover (for example).
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Yet another Vista "Local only" and "Unidentified network".. (Windows Vista)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Timing Execution (C++)
- FTP problems (Linux Servers and Apache)
- Booting causes deleted files to reappear (OS X)
- Identifying Drivers needed (Windows 9x / Me)
- Timming Role in Exchanging Tranditional Commerce to E-commerce (eCommerce)
- Need really real time (Computer Science and Software Design)
- i don't know how to start (C++)
Other Threads in the C++ Forum
- Previous Thread: Quick Search in File handling
- Next Thread: C++ possible?



Linear Mode