DISPLAYING TIME

3 replies [Last post]
Offline
Joined: 04/02/2013

 I WANT TO DISPLAY TIME IN SECONDS AND MINUTES IN MY CODE HOW CAN I DO THAT???

Offline
Joined: 12/13/2010
check out this link: 
Offline
Joined: 04/02/2013
 I am not getting any hint

 I am not getting any hint from above link

jmadar can u plz tell me the whole method for displaying time in my game code???

Offline
Joined: 12/13/2010
Try this:   import

Try this:

 


import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
 

.

.

.


        DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Date date = new Date();
        env.setDisplayStr(dateFormat.format(date));