From bbcf54037785b8cf09a41fe1e873ddbb7eb1fe1a Mon Sep 17 00:00:00 2001 From: Mazyar98 <41508400+Mazyar98@users.noreply.github.com> Date: Fri, 11 Oct 2019 19:40:36 +0330 Subject: [PATCH] Create date_and_time.cpp --- date_and_time.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 date_and_time.cpp diff --git a/date_and_time.cpp b/date_and_time.cpp new file mode 100644 index 0000000..cbc929a --- /dev/null +++ b/date_and_time.cpp @@ -0,0 +1,11 @@ +#include +#include + +using namespace std; + +int main(int count, char* args[]) +{ + time_t t = time(0); + cout << ctime(&t) << endl; + +}