On Wed, 2 Oct 2002 12:10:30 +0200 Roberto A.Foglietta <fogliettar@xxxxxxxxxxxxxxxxxx> wrote: > Ciao, > > compilo questo strama***to prg, banale ma poi... > SONO UNA CAPRA... e mi rispondo da solo! > #include <time.h> > #include <stdio.h> > > int main(void) > { unsigned long sod; > struct tm *tm; sod = time(NULL); tm = localtime(&sod); > > asctime(tm); printf("secondi: %d \n", (int)(tm->tm_sec)); printf("minuti: %d \n", (int)(tm->tm_min)); printf("ora: %d \n", (int)(tm->tm_hour)); printf("giorno: %d \n", (int)(tm->tm_mday)); printf("mese: %d \n", (int)(tm->tm_mon)); printf("anno: %d \n", (int)(tm->tm_year)); > printf("--------------\n"); > return 0; > } -- ,__ ,_ ,___ .-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-. ||_) ||\ ||_ / GEA Automotive S.R.L. | || \ ||¯\ ||¯ Software Research & Development Division | ¯¯ ¯° ¯¯ ¯° ¯¯ ° tel.: +39 010 65966917 | Roberto A. Foglietta com.: mailto:fogliettar@xxxxxxxxxxxxxxxxxx | \ Linux & SW Architect per.: http://digilander.iol.it/robang | `-----------------------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-' ========---------- Prima di scrivere in m-list per favore leggi il regolamento http://www.lugge.net/soci/manifesto.htm#list Archivio delle e-mail postate in lista //www.freelists.org/archives/lugge/ Modifica dell'account su freelists //www.freelists.org/cgi-bin/lsg2.cgi ----------======== La sede e` aperta ogni martedi` pomeriggio 14.30-18.00 http://www.lugge.net/soci/sede.htm