Скачиваний:
11
Добавлен:
01.05.2014
Размер:
516 б
Скачать

// File:        Utilities.cpp

#include "StdAfx.h"
#include "Utilities.h"
#include <ctime>
//-----------------------------------------------------------------------------

const char * UTIL::GetTimeStr(char * buffer, size_t MaxSize)
{
    struct tm *newtime;
    time_t aclock;

    time( &aclock );                  // Get time in seconds
    newtime = localtime( &aclock );   // Convert time to struct tm form
    strftime(buffer, MaxSize, "%d/%m/%Y  %H:%M:%S", newtime);

    return buffer;
}
Соседние файлы в папке Курсовая работа2