classes/CSMTP.cpp
const std::string CSMTP::currentDateAndTime(void)
    {
        std::time_t rawtime{0};
        struct std::tm *info{
            0};
        std::string buffer(80, ' ');
        std::time(&rawtime);
        info = std::localtime(&rawtime);
        buffer.resize(std::strftime(&buffer[0], buffer.length(), "%a, %d %b %Y %H:%M:%S %z", info));
        return (buffer);
    }
// =======================
// PUBLIC STATIC VARIABLES
// =======================
// ===============
// PRIVATE METHODS
// ===============
//
// Get string for current date time. Note: Resizing buffer effectively removes
// the null character added to the end of the string by strftime().
//

PUBLIC STATIC VARIABLES

PRIVATE METHODS

Get string for current date time. Note: Resizing buffer effectively removes
the null character added to the end of the string by strftime().
PUBLIC STATIC VARIABLES PRIVATE METHODS Get string for current date time . Note : Resizing buffer effectively removes the null character added to the end of the string by strftime () .
const std::string CSMTP::currentDateAndTime(void)
    {
        std::time_t rawtime{0};
        struct std::tm *info{
            0};
        std::string buffer(80, ' ');
        std::time(&rawtime);
        info = std::localtime(&rawtime);
        buffer.resize(std::strftime(&buffer[0], buffer.length(), "%a, %d %b %Y %H:%M:%S %z", info));
        return (buffer);
    }
const std :: string CSMTP :: currentDateAndTime ( void ) { std :: time_t rawtime { 0 } ; struct std :: tm * info { 0 } ; std :: string buffer ( 80 , ' ' ) ; std :: time ( & rawtime ) ; info = std :: localtime ( & rawtime ) ; buffer . resize ( std :: strftime ( & buffer [ 0 ] , buffer . length ( ) , " " , info ) ) ; return ( buffer ) ; }
PUBLIC STATIC VARIABLES
PUBLIC STATIC VARIABLES