Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
- Filthy Rich wx Solver
- Posts: 215
- Joined: Wed Jan 20, 2010 1:15 pm
I must set linux system clock via wxDateTime.
How i can do this?
- Posts: 14098
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
To my best knowledge there is no wxWidgets function for this.
Use the source, Luke!
- Site Admin
- Posts: 3889
- Joined: Thu Jan 12, 2006 6:23 pm
- Location: IoW, UK
I don't know of one either.
However you should be able make a system call using wxExecute(), using the ideas in this link
. You may need superuser privileges, though.
- Knows some wx things
- Posts: 34
- Joined: Mon Nov 19, 2012 3:29 pm
- Location: The Great White North
Your progam has to have root privileges to set the date & time. You may have to use the system function stime