Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((choice_date == "y") || (choice_date == "Y")) {
- if (manualTimestamp.tm_mon < 10) {
- if (manualTimestamp.tm_mday < 10) {
- cout << "Date: " << manualTimestamp.tm_year << "-0" << manualTimestamp.tm_mon << "-0" << manualTimestamp.tm_mday << " " << manualTimestamp.tm_hour << ":" << manualTimestamp.tm_min << ":" << manualTimestamp.tm_sec << endl;
- }
- else {
- cout << "Date: " << manualTimestamp.tm_year << "-0" << manualTimestamp.tm_mon << "-" << manualTimestamp.tm_mday << " " << manualTimestamp.tm_hour << ":" << manualTimestamp.tm_min << ":" << manualTimestamp.tm_sec << endl;
- }
- }
- else {
- if (manualTimestamp.tm_mday < 10) {
- cout << "Date: " << manualTimestamp.tm_year << "-" << manualTimestamp.tm_mon << "-0" << manualTimestamp.tm_mday << " " << manualTimestamp.tm_hour << ":" << manualTimestamp.tm_min << ":" << manualTimestamp.tm_sec << endl;
- }
- else {
- cout << "Date: " << manualTimestamp.tm_year << "-" << manualTimestamp.tm_mon << "-" << manualTimestamp.tm_mday << " " << manualTimestamp.tm_hour << ":" << manualTimestamp.tm_min << ":" << manualTimestamp.tm_sec << endl;
- }
- }
- }
- else {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement