4396 - Date 클래스

Time Limit: 1s Memory Limit: 128MB

Submissions: 626 Solved: 455
Description

UTC+0 시간대에서 1970년 1월 1일부터 A까지 총 몇 ms가 지났는지 주어집니다. 여러분은 Date 개체를 사용해서 한국에서 A의 날짜와 시간을 찾는 프로그램을 작성해야 합니다. 예를 들어 1000000000가 주어진다면 "Mon Jan 12 22:46:40 KST 1970"를 출력합니다.

(Use the Date class) Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, and 100000000000, and displays the date and time using the toString() method, respectively.

Input

* Line 1 : 테스트케이스 T (1~1,000)

* Line 2 ~ T+1 : 밀리초를 나타내는 정수 (1~1,000,000,000,000,000)

Output

* Line 1 ~ T : 해당 날짜와 시간을 형식에 맞추어 출력

 
Sample Input
3
1000000000
1000000000000
1000000000000000
Sample Output
Mon Jan 12 22:46:40 KST 1970
Sun Sep 09 10:46:40 KST 2001
Fri Sep 27 10:46:40 KST 33658
Source

JAVA2015 PE9.3