The passed hours since the beginning of year

Report a typo
The problem statement
Write a program that reads a date-time pair and calculates how many hours have passed since the beginning of the year (1st January, 00:00).

Input data format
The first line contains a date-time pair in the format year-month-dayThour:minute:second.

Output data format
The line containing an integer number.

Sample Input 1:

2017-12-31T23:59:59

Sample Output 1:

8759
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic