In java...how can i change the local computer time...i mean "real computer".
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Is this the "real computer" in your thermostat, a Unix machine, a Mac machine, a Windows machine, a PalmPilot???
"JavaRanch, where the deer and the Certified play" - David O'Meara
Stacy Lee
Greenhorn
Joined: Jun 09, 2001
Posts: 12
posted
0
someone tell me i can use dos command to set the computer date here is code: ===================================================== public class Test { public static void main(String[] args) { try { Runtime.getRuntime().exec("start command /c date 07-12-01"); } catch (Exception e) { e.printStackTrace(); } } } ==================================================== the code above can work fine...but only change the date... how do u make it change to time...?? thanks
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
This worked in Win98: Runtime.getRuntime().exec("start command /c time 16:45:00");
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.