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
Local AI LLM Wrapper Demo...
by
edwinyzh
[
Today
at 05:30:15 am]
Trndi 16 is released
by
slicke
[
Today
at 03:06:44 am]
Clean up and build
by
n7800
[August 14, 2026, 11:03:28 pm]
[Qt5/Qt6] JPSupport-Qt: J...
by
Martin_fr
[August 14, 2026, 09:30:43 pm]
var vs out (including "co...
by
440bx
[August 14, 2026, 09:25:21 pm]
FpDebug: Bugs and API gap...
by
Martin_fr
[August 14, 2026, 09:19:49 pm]
Which Linux version
by
cdbc
[August 14, 2026, 08:57:51 pm]
'ReadStr' ?
by
PascalDragon
[August 14, 2026, 08:33:34 pm]
Cross platform DirectoryW...
by
LemonParty
[August 14, 2026, 07:41:15 pm]
Lazarus Bugfix Release 4....
by
wp
[August 14, 2026, 04:47:58 pm]
LRS Explorer
by
wp
[August 14, 2026, 04:02:45 pm]
TDWEdit
by
docno
[August 14, 2026, 03:35:02 pm]
BS Controls – Silly Compo...
by
Xenno
[August 14, 2026, 02:30:43 pm]
Separators in the compone...
by
JuhaManninen
[August 14, 2026, 01:28:05 pm]
Lazarus, Ubuntu Pi 4 and ...
by
Thaddy
[August 14, 2026, 12:07:04 pm]
Unleashed Pascal (async/a...
by
creaothceann
[August 14, 2026, 11:11:47 am]
AsyncProcess not firing O...
by
Martin_fr
[August 14, 2026, 11:05:52 am]
Is it possible to communi...
by
Xor-el
[August 14, 2026, 10:28:59 am]
How to avoid duplicates i...
by
mig-31
[August 13, 2026, 05:35:46 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[August 13, 2026, 04:49:24 pm]
Memory location
by
Thaddy
[August 13, 2026, 04:01:56 pm]
TurboBird IBX
by
laguna
[August 13, 2026, 03:55:51 pm]
TlsLib4Pascal
by
Xor-el
[August 13, 2026, 03:06:13 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[August 13, 2026, 12:54:22 pm]
AArch64, load a constant ...
by
LemonParty
[August 13, 2026, 12:31:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: System time (Read 7984 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: 8836
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: 8836
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