aspose file tools*
The moose likes Beginning Java and the fly likes i need a function to get system time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "i need a function to get system time" Watch "i need a function to get system time" New topic
Author

i need a function to get system time

krishbal
Greenhorn

Joined: Mar 15, 2006
Posts: 4
hi friends
how do icreae progress bar using java and how do i get system time.give me an example with code.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
Hello "balogix"-

Welcome to JavaRanch.

On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.

As to your question, check out the java.lang.System.currentTimeMillis() method.


Ping & DNS - my free Android networking tools app
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
Hello "krishbal"-

Thanks for changing your screen name. Unfortunately, it's still not what's required. The policy specifies that the screen name consists of a first name, a space, and a last name. Please adjust it accordingly.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by balogix:
...how do i get system time....

long myTime = System.currentTimeMillis();

As for progress bars, see How to Use Progress Bars.
[ March 15, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i need a function to get system time