We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616efd7 commit 9c4f1b5Copy full SHA for 9c4f1b5
timestamp.cpp
@@ -1,6 +1,8 @@
1
#include <iostream>
2
using namespace std;
3
-
+
4
+// https://stackoverflow.com/questions/997946/how-to-get-current-time-and-date-in-c
5
6
std::string get_timestamp() {
7
time_t now = time(NULL);
8
struct tm* ltm = localtime(&now);
0 commit comments