1
Date d = new Date();
Calendar c = Calendar.getInstance();
c.setTime(d);
String datum = c.get(Calendar.HOUR_OF_DAY)+":"+c.get(Calendar.MINUTE)+"h "+
c.get(Calendar.DAY_OF_MONTH)+"."+(c.get(Calendar.MONTH)+1)+"."+c.get(Calendar.YEAR);
//String Dateinstring = new String(datum.toString());
Ticker t = new Ticker (datum.toString());
joro.removeCommand(show);
joro.addCommand(back);
joro.setTicker(t);
String label = command.getLabel();

上面的代码仍然有价值并通过滚动重复它。它如何与实时同步?(时间可能会抖动到 1 分钟)。

4

0 回答 0