Howto (Time hande in gcc)

Nick Stivaktakis SigmaN at her.FORTHnet.GR
Mon Mar 31 22:34:06 EEST 1997


- ----------
> From: Internet GateWay <root at florina.compulink.gr>
> To: linux-greek-users at argeas.argos.hol.gr
> Subject: Howto (Time hande in gcc)
> Date: Monday, March 31, 1997 08:23
>
> Gia xara se olous
>
>  Loipon (prospa8w edw kai ligo kairw na ma8w C h gcc ) exw ena problhma!
>  8elw na diabasw thn wra se programma C pou 8a elegxei mia syskebh katw
>  apo linux  alla den 3erw pws, brhka mia synarthsh (thn gettimeofday)
>  alla den 3erw ti parametrous 8elei kai ti typou eina oi parammetroi
>
>  Help!
>
>  euxaristw ek twn proterwn
>
>  X. Ioannou
- ----------

Des to parakatw :


#include <stdio.h>
#include <time.h>

time_t time_in_secs;
char *time_in_string;

main() {
	time_in_secs=time(NULL);
	time_in_string=ctime(&time_in_secs);
	printf("%d\n%s\n",time_in_secs,time_in_string);
}


Nomizw einai arketa aplo gia na kanw sxolia ...
Elpizw na bohthhsa.
Bye.

Nick Stivaktakis / SigmaN at her.FORTHnet.GR
==================================================================
For help on using this list (linux-greek-users), send a message to
"majordomo at argeas.argos.hol.gr" with one line of text: "help".
For any problem send e-mail to owner-linux-greek-users
==================================================================



More information about the Linux-greek-users mailing list