asctime funzione

Pubblicato il 14 febbraio 2009 in C da admin

/ * utilizzando il asctime funzione * /

# include <stdio.h>
# include <time.h>
int main ()

(
struct tm * ptr;

time_t tm;
tm = time (NULL);
ptr = localtime (& tm);
printf (asctime (ptr));
return 0;

)

Related post:

  1. Utilizzando la funzione ctime Uso della funzione ctime Questo esempio mostra un esempio di utilizzo ...
  2. CAPITOLO 5: Puntatori e Strutture CAPITOLO 5: Puntatori e Strutture Come forse saprai, ...
  3. Difftime esempio Ciò dimostra la funzione difftime e in questo caso ...

Related posti portato a voi da Yet Another Related Posts Plugin.

Pubblica un commento