Lazarus
Installation => General => Topic started by: mrdebug on November 13, 2007, 04:43:18 pm
-
Is there a CrossPlatform function to modify System DateTime?
Thanks!
-
See DateUtils unit. Find what you want there, probably the ones started with Encodexxx & Decodexxx.
-
Is there a function like SetSystemTime (Delphi) to change the System DateTime?
-
Well, after searching for a while, I don't seem to find one. You can add Windows unit to your uses to use that function, but it's not cross-platform.
-
I add such a function that work at least for Windows and Linux when I rework the NTP functions of Synapse.some years ago.
It must be in synautil unit now.
But remember your user must be root or administrator to use that !