NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
Utility class. More...
#include <NA_Utils.h>
Static Public Member Functions | |
static std::string | currentDateTime () |
Get current date/time, format is YYYY-MM-DD.HH:mm:ss. |
Utility class.
Class that provide several utility methods for MA framework
Definition at line 42 of file NA_Utils.h.
std::string NA_Utils::currentDateTime | ( | ) | [static] |
Get current date/time, format is YYYY-MM-DD.HH:mm:ss.
Definition at line 33 of file NA_Utils.cc.
{ time_t now = time(0); struct tm tstruct; char buf[80]; tstruct = *localtime(&now); // Visit http://www.cplusplus.com/reference/clibrary/ctime/strftime/ // for more information about date/time format strftime(buf, sizeof(buf), "%X", &tstruct); return buf; }