Skip to content

Commit d59665d

Browse files
committed
make funny comment names
1 parent 8a2de77 commit d59665d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

arkr.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,14 @@ int main(int argc, char *argv[]) {
6262
return 1;
6363
}
6464
} else if (string(argv[1]) == "about") {
65-
// Get compile time
65+
// compile time and date
6666
const char* compileDate = __DATE__;
6767
const char* compileTime = __TIME__;
68-
69-
// Parse compile date and time
68+
// parseing
7069
int month, day, year, hour, minute, second;
7170
sscanf(compileDate, "%*s %d %d", &day, &year);
7271
string monthStr = string(compileDate).substr(0, 3);
73-
74-
// Convert month string to number
72+
// we dont like month names
7573
if (monthStr == "Jan") month = 1;
7674
else if (monthStr == "Feb") month = 2;
7775
else if (monthStr == "Mar") month = 3;
@@ -84,15 +82,11 @@ int main(int argc, char *argv[]) {
8482
else if (monthStr == "Oct") month = 10;
8583
else if (monthStr == "Nov") month = 11;
8684
else if (monthStr == "Dec") month = 12;
87-
88-
// Parse time
85+
// more pasreing
8986
sscanf(compileTime, "%d:%d:%d", &hour, &minute, &second);
90-
91-
// Format time string
87+
// now formateing
9288
char buffer[16];
9389
snprintf(buffer, sizeof(buffer), "%02d%02d%04d%02d%02d%02d", day, month, year, hour, minute, second);
94-
95-
// Print version and compile time
9690
cout << "Version: " << version << endl;
9791
cout << "Build date: " << buffer << endl;
9892
return 0;

0 commit comments

Comments
 (0)