[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

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

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