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
Reset doesn't open ReadOn...
by
ASerge
[
Today
at 05:39:50 pm]
FPC says file exists, Laz...
by
cdbc
[
Today
at 05:06:05 pm]
Lazarus IDE built for LCL...
by
zeljko
[
Today
at 03:28:13 pm]
Lazarus Bugfix Release 4....
by
uganof
[
Today
at 03:04:05 pm]
Add Help to an Applicatio...
by
1HuntnMan
[
Today
at 02:41:40 pm]
composition instead of in...
by
BildatBoffin
[
Today
at 01:16:31 pm]
Update a table with an Au...
by
Zvoni
[
Today
at 01:14:15 pm]
Is it me or is there some...
by
jamie
[
Today
at 12:03:37 pm]
bgraformatui.pas(26,12) W...
by
marcov
[
Today
at 11:40:06 am]
Variable initialization
by
BildatBoffin
[
Today
at 11:35:22 am]
unit ProjectDescriptorTyp...
by
Martin_fr
[
Today
at 09:41:17 am]
FreePascal/Lazarus docume...
by
MarkMLl
[
Today
at 08:39:13 am]
Lazarus 4.x - ZeosdBo
by
essence-ciel
[
Today
at 08:29:57 am]
Fpcupdeluxe
by
DonAlfredo
[
Today
at 08:22:12 am]
BGRAVirtualScreen - weird...
by
backprop
[
Today
at 08:20:04 am]
Question about fpreport
by
ginoo
[
Today
at 07:17:44 am]
Status of Fresnel Project...
by
dbannon
[
Today
at 06:11:31 am]
https://live.freepascal.o...
by
PierceNg
[
Today
at 05:15:59 am]
Lazarus Woes (4.2)
by
Martin_fr
[March 04, 2026, 09:22:32 pm]
gitlab issues menu
by
n7800
[March 04, 2026, 07:52:13 pm]
The growth of computers
by
LeP
[March 04, 2026, 07:04:17 pm]
Problem to restore previo...
by
Hartmut
[March 04, 2026, 05:19:29 pm]
How to use Lazserial
by
CM630
[March 04, 2026, 03:27:11 pm]
Don't Look Here
by
Joanna
[March 04, 2026, 02:53:40 pm]
TidSimpleServer Error whi...
by
jamie
[March 04, 2026, 12:27:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: System time (Read 7956 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