Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour, minute, and second) and returns the number of seconds since the beginning of the year. Use numbers 1 through 12 to represent months. Use numbers 0 through 23 to represent hours. Use the year number to determine the number of days in February.
Use this function to calculate the amount of time in seconds between January 28, 2014, 12:35 pm and May 22, 2014, 1:15 pm.