Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

How we can change the hour system with java?

Thread view: 
Nanou - 06 Jul 2005 10:32 GMT
How we can change the hour system with Java?

Thanks

Nanou
proGex - 06 Jul 2005 11:07 GMT
Not sure what are you talking about, try giving more details
Roedy Green - 06 Jul 2005 11:18 GMT
>How we can change the hour system with Java?

You want to have 10 "hours" per day?

Or do you just want to display in hh:mm 12 vs 24 hour time?

See http://mindprod.com/jgloss/calendar.html

see http://mindprod.com/products1.html#BIGDATE

for my calendar computing code. You could use it as a base to create
your own calendar, naming the months after your friends.

Signature

Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes

Nanou - 06 Jul 2005 13:55 GMT
In fact, i want that my program java can change the hour in the system.
If the hour is 8:00 i want that my program set for example 10:00.
It's possible ?
Uwe Ziegenhagen - 06 Jul 2005 14:14 GMT
> In fact, i want that my program java can change the hour in the system.
> If the hour is 8:00 i want that my program set for example 10:00.
> It's possible ?

maybe by calling the respective Windows function via system().

Uwe

Signature

mail to newsgroup@ziegenhagen.info is read only from time to time. If
you need an urgent answer, google for me.

Nanou - 06 Jul 2005 14:43 GMT
Yes there is Runtime.getRuntime().exec() and the dos commande time.
But is there another way instead of call a cmd ?
Thankx
Stefan Schulz - 06 Jul 2005 19:40 GMT
> Yes there is Runtime.getRuntime().exec() and the dos commande time.
> But is there another way instead of call a cmd ?

No.

Signature

You can't run away forever,
But there's nothing wrong with getting a good head start.
          --- Jim Steinman, "Rock and Roll Dreams Come Through"
         

Thomas Weidenfeller - 07 Jul 2005 08:25 GMT
>>Yes there is Runtime.getRuntime().exec() and the dos commande time.
>>But is there another way instead of call a cmd ?
>
> No.

Yes, via JNI and appropriate operating-system calls. If we are talking
about Windows than maybe also via a Java-COM bridge and some existing MS
COM object.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Joan - 06 Jul 2005 19:53 GMT
> Yes there is Runtime.getRuntime().exec() and the dos commande time.
> But is there another way instead of call a cmd ?
> Thankx

If you have windows XP there is a feature that sets the clock once each
week from a precision time source via the Internet, so if you change the
time via java it might revert to something else via this mechanism.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.