Hi,
I need to create a matrix when given the begin year, month, day, time and end year, month, day and time.
for example; (I do not need to see the header in the matrix)
I would like to enter:
begin year = 1998begin month = 1begin day = 1begin time = 0end year = 1998end month = 2end day = 15end time = 12(as shown in the table below)
But, if I enter leap years (e.g. 2000,2004, etc) it should include Feb 29 and do the same time steps (0 to 21) as shown in the table.
Then, the program should generate the output for the time periods given above. See the sample below.
Year Month Day Time1998 1 1 01998 1 1 31998 1 1 61998 1 1 91998 1 1 121998 1 1 151998 1 1 181998 1 1 211998 1 2 0... 1998 2 15 12
Any help is appreciated.
Thanks in advance.
Best Answer