Hi Lukas, Thanks for your help, I've got it working now,
var Test : AnsiString; a : array of byte; begin if SNMPget('1.3.6.1.2.1.25.1.2.0', 'public', '192.168.1.1', test) then begin a := @test[1]; ShowMessage( DateTimeToStr( EncodeDateTime((a[0] shl 8) or a[1], // year (2 byte) a[2], // month a[3], // day a[4], // hour a[5], // minute a[6], // second a[7] // milli second ) ) ); end; end; Best regards, Maarten ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public