OldLinux unit not found lazarus / 1-Linux ---------------------------------------------------------------------- mrdebug · 2007-11-30 08:43 I used the unit oldlinux to adjust the time of PC like this: Code: [Select] SetDateTime(anno, mese, giorno, ore, minuti, secondi) But now the unit oldlinux no more. How do I do now? ---------------------------------------------------------------------- Almindor · 2007-11-30 10:27 Code: [Select] uses BaseUnix; var   timeval: TTimeVal;   timezone: TTimeZone; begin   // set timeval/timezone here   fpSetDateTime(@timeval, @timezone); end. It's not 100% equivalent but should work ok. Note "baseunix" is of course unix specific, but will work on non-linux too (eg: BSD, OSX etc.) ---------------------------------------------------------------------- mrdebug · 2007-11-30 16:49 There isn't fpSetDateTime function in BaseUnix Unit... ---------------------------------------------------------------------- marcov · 2007-12-05 20:46 fpsettimeofday ---------------------------------------------------------------------- mrdebug · 2007-12-06 11:15 Thanks 1000!