System function - set date and time from Gambas app

Post your Gambas programming questions here.
Post Reply
AndyGable
Posts: 363
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

System function - set date and time from Gambas app

Post by AndyGable »

Hi everyone,

Does anyone know how I could set the date and time from with in a full screen Gambas application?

I ask this as my system does not have any desktop installed (I have x11 installed and that is it)

I'm thinking I would need a way to verify the date and time is correct if not I would want to be to update it from my app and not need to connect a keyboard to run terminal commands

Any advice would be welcome
User avatar
thatbruce
Posts: 168
Joined: Saturday 4th September 2021 11:29pm

Re: System function - set date and time from Gambas app

Post by thatbruce »

Don't follow. Do you want to set the date/time to what someone thinks is the right time to use or to the correct time?
If the latter then this is an operating system matter and not something your application should be dabbling in. Search ntp.
Have you ever noticed that software is never advertised using the adjective "spreadable".
vuott
Posts: 262
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: System function - set date and time from Gambas app

Post by vuott »

In :? my opinion, since we have the "date" or "rdate" command available from the Terminal to operate on the system date and time, you could use Gambas 'Shell' function.
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
User avatar
thatbruce
Posts: 168
Joined: Saturday 4th September 2021 11:29pm

Re: System function - set date and time from Gambas app

Post by thatbruce »

Good point. But are we talking about the application timeframe or reality?
Have you ever noticed that software is never advertised using the adjective "spreadable".
Post Reply