Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TruTime.initialize('time.google.com'); //ntp host
- Date trueTime = TrueTime.now();
- Date deviceTime = new Date();
- // вывод даты с учетом таймзоны
- timeGMT.setText(getString(R.string.tt_time_gmt,
- _formatDate(trueTime, "yyyy-MM-dd HH:mm:ss", TimeZone.getTimeZone("GMT"))));
Add Comment
Please, Sign In to add comment