System function - set date and time from Gambas app

Post

Posted
Rating:
#1 (In Topic #1034)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
 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
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
 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.

Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
vuott is in the usergroup ‘Regular’
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 !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
Good point. But are we talking about the application timeframe or reality?

Online now: No Back to the top
1 guest and 0 members have just viewed this.