Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Installation
»
General
»
System time
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
would multi threading hel...
by
speter
[
Today
at 11:34:46 am]
Bass.dll equalizer unit
by
Pe3s
[
Today
at 11:05:45 am]
Difference in formatting ...
by
Hartmut
[
Today
at 09:30:18 am]
Rolling releases Lazarus[...
by
Thaddy
[
Today
at 09:25:54 am]
Lazarus Bugfix Release 4...
by
CM630
[
Today
at 08:02:52 am]
Lazarus for Windows on aa...
by
Thaddy
[
Today
at 07:26:30 am]
OPC client with Lazarus
by
TheMouseAUS
[
Today
at 04:56:43 am]
[Windows] UTF8 encoding w...
by
PascalDragon
[January 22, 2026, 09:51:05 pm]
Developing FreePascal on ...
by
ccrause
[January 22, 2026, 06:14:41 pm]
Lazarus in Windows allowe...
by
vinntec
[January 22, 2026, 06:01:29 pm]
Perlin Map 3D
by
Boleeman
[January 22, 2026, 05:47:15 pm]
PasTemplates - a go-like ...
by
CynicRus
[January 22, 2026, 05:35:57 pm]
Strange Error when I use ...
by
TYDQ
[January 22, 2026, 03:14:50 pm]
FPCupDeluxe unable to bui...
by
Martin_fr
[January 22, 2026, 02:57:15 pm]
TRichMemo install shows "...
by
vinntec
[January 22, 2026, 01:36:50 pm]
Register global hotkey
by
Thaddy
[January 22, 2026, 06:28:54 am]
X11Libre, finally and for...
by
Fred vS
[January 21, 2026, 10:20:53 pm]
What's wrong with my appl...
by
bourbon
[January 21, 2026, 09:04:40 pm]
How to observe the value ...
by
nouzi
[January 21, 2026, 06:26:13 pm]
Anti "churning" in solita...
by
TBMan
[January 21, 2026, 04:30:05 pm]
Perlin Noise Map With BGR...
by
Boleeman
[January 21, 2026, 01:36:13 pm]
Strange Mail from memo.mi...
by
Thaddy
[January 21, 2026, 01:27:19 pm]
[Solved] Lazreport. Sorti...
by
Petrus Vorster
[January 21, 2026, 11:39:09 am]
Regarding the issue of de...
by
Martin_fr
[January 21, 2026, 11:16:29 am]
Pleas help, Synapse / Ind...
by
patyit
[January 21, 2026, 10:25:29 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: System time (Read 7922 times)
mrdebug
Full Member
Posts: 160
System time
«
on:
November 13, 2007, 04:43:18 pm »
Is there a CrossPlatform function to modify System DateTime?
Thanks!
Logged
www.labcsp.com
www.denisgottardello.it
GMT+1
Skype: mrdebug
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
RE: System time
«
Reply #1 on:
November 14, 2007, 05:36:23 am »
See DateUtils unit. Find what you want there, probably the ones started with Encodexxx & Decodexxx.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
mrdebug
Full Member
Posts: 160
System time
«
Reply #2 on:
November 14, 2007, 08:56:10 am »
Is there a function like SetSystemTime (Delphi) to change the System DateTime?
Logged
www.labcsp.com
www.denisgottardello.it
GMT+1
Skype: mrdebug
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
System time
«
Reply #3 on:
November 14, 2007, 10:08:10 am »
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.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
pch
Jr. Member
Posts: 51
System time
«
Reply #4 on:
November 15, 2007, 11:55:51 am »
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 !
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Installation
»
General
»
System time
TinyPortal
© 2005-2018