Asctime
Funkcja konwertuje strukturę tm na łańcuch. Zwracany string ma format Www Mmm dd hh:mm:ss yyyy.
Parametry:
Przykład
#include <cstdlib>
#include <iostream>
#include <time.h>
using namespace std;
int main(int argc, char *argv[])
{
time_t seku;
time(&seku);
struct tm *e;
e=localtime(&wsk_sekund);
cout<<asctime(e);
system("PAUSE");
return EXIT_SUCCESS;
}
#include <iostream>
#include <time.h>
using namespace std;
int main(int argc, char *argv[])
{
time_t seku;
time(&seku);
struct tm *e;
e=localtime(&wsk_sekund);
cout<<asctime(e);
system("PAUSE");
return EXIT_SUCCESS;
}
Zobacz też:


