-->
当前位置:首页 > 题库

PROGRAMMING:Using Gregorian calendar

Luz5年前 (2021-05-10)题库402
Gregorian calendar is used. Gregorian calendar has the method settimeinmillis (long); You can use it to set a specific time from January 1, 1970. Please program to input a long integer value from the keyboard, and then output the corresponding year, month and day. For example, input: 1234567898765, output: 2009-1-14
###Input format:
input
1234567898765 (milliseconds)
###Output format:
output
2009-1-14 (output year, month and day, which should actually be February, because the Java API calculates the month from 0)
###Input example:
```in
one trillion and four hundred and fifty billion nine hundred and twenty-one million seventy thousand one hundred and eight
```
###Output example:
```out
2015-11-24
```






answer:If there is no answer, please comment