मैं अपने सुधार या हो सकता है आपकी राय, ओलिवर वीलर मिल सकता है की आवश्यकता है? शायद यह आपके लिए बहुत पुराना है ... लेकिन मैं जावा और जीडब्ल्यूटी में नया हूं ... मैं जानना चाहता हूं कि यह निम्नलिखित कोड इस बहिष्कृत विधि के लिए एक अच्छा और कुशल समाधान है या नहीं।
गूगल ट्यूटोरियल इस दे: https://developers.google.com/web-toolkit/doc/latest/tutorial/codeclient#timestamp
private void updateTable(StockPrice[] prices) {
for (int i = 0; i < prices.length; i++) {
updateTable(prices[i]);
}
// Display timestamp showing last refresh.
lastUpdatedLabel.setText("Last update : " + DateTimeFormat.getMediumDateTimeFormat().format(new Date()));
}
मैं डाल क्यों गूगल इस ट्यूटोरियल को अद्यतन नहीं किया इस के बजाय
private void updateTable(StockPrice[] prices) {
for (int i = 0; i < prices.length; i++) {
updateTable(prices[i]);
}
// Display timestamp showing last refresh.
DateTimeFormat format = DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_MEDIUM);
lastUpdatedLabel.setText("Last update : " + format.format(new Date()));
}
पता नहीं है।
यहाँ एक पुष्टिकरण देखो: https://code.google.com/p/google-web-toolkit/issues/detail?id=8241#c3
धन्यवाद
Thx, काम किया। हालांकि मुझे 'DATE_TIME_MEDIUM' का उपयोग करना पड़ा था। – helpermethod