Asctime

charasctime ( const struct tm * tmptr );

Funkcja konwertuje strukturę tm na łańcuch. Zwracany string ma format Www Mmm dd hh:mm:ss yyyy.

Parametry:
tmpr
Wskaźnik na strukturę tm, do przekonwertowania

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;
}

Zobacz też:

Informacje
Ostatnia modyfikacja 23-10-2006 15:33 Ostatni autor Coldpeer
Ilość wyświetleń 3453 Wersja 4
Komentarz

Copyright © 2000-2006 by Coyote Group 0.9.3-pre3
Czas generowania strony: 0.0318 sek. (zapytań SQL: 10)