Question: Write a program that accepts six input values: year, month, day, hours, minutes, and seconds. The program should print one value, the Unix time number

Write a program that accepts six input values: year, month, day, hours, minutes, and seconds. The program should print one value, the Unix time number ingoring time zones. This program should be written in the C programming language(NOT C++), do not use operating system calls, no variables(do not use an assignment statement inside a function), Inputs are Command line parameters. If the year is less than 1970(prior to the UNIX Epoch), the output should be something like "Invalid input, that is before the unix epoch.", you are NOT required to validate day, month, hour, minute, or second values.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a C program that accepts six input values year month day hours minutes and seconds ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!