Re: [fpc-pascal] getting system time in linux

2009-04-10 Thread Jan De Bleser
Thanks Rainer, In the end I solved it using UnixToDateTime(FpTime), which is easier of course... Rainer Stratmann schreef: Am Freitag, 10. April 2009 16:47 schrieb Jan De Bleser: You can try this. Not all uses are needed, you have to find out. Rainer uses crt, {$ifdef linux} baseunix, un

Re: [fpc-pascal] getting system time in linux

2009-04-10 Thread Jan De Bleser
Marco van de Voort schreef: In our previous episode, Jan De Bleser said: How is it possible to get the system time in linux? It used to be possible by using 'getsystemtime' of the unit oldlinux, but this unit is no longer available on my compiler... The thing I want to use it for is: I get a

Re: [fpc-pascal] getting system time in linux

2009-04-10 Thread Rainer Stratmann
Am Freitag, 10. April 2009 16:47 schrieb Jan De Bleser: You can try this. Not all uses are needed, you have to find out. Rainer uses crt, {$ifdef linux} baseunix, unix, termio, // serial linux, sysutils, dateutils, unixutil; {$else} windows; {$endif} procedure mylo_os_gettime( var ho

Re: [fpc-pascal] getting system time in linux

2009-04-10 Thread Marco van de Voort
In our previous episode, Jan De Bleser said: > > How is it possible to get the system time in linux? > It used to be possible by using 'getsystemtime' of the unit oldlinux, > but this unit is no longer available on my compiler... > > The thing I want to use it for is: I get a packet form libpcap

[fpc-pascal] getting system time in linux

2009-04-10 Thread Jan De Bleser
Hi, How is it possible to get the system time in linux? It used to be possible by using 'getsystemtime' of the unit oldlinux, but this unit is no longer available on my compiler... The thing I want to use it for is: I get a packet form libpcap, with the time of receival in system time. I wan