How to display current time in java?
|
1 answer
Of course, Calendar.getInstance () .
new SimpleDateFormat("yyyy.MM.dd HH:mm:ss").format(Calendar.getInstance().getTime());
How to display a line on the screen, to explain, I hope, is not necessary.
|
Of course, Calendar.getInstance () .
new SimpleDateFormat("yyyy.MM.dd HH:mm:ss").format(Calendar.getInstance().getTime());
How to display a line on the screen, to explain, I hope, is not necessary.
Source: https://ru.stackoverflow.com/questions/198355/
All Articles