ex4.pp 498 B

12345678910111213141516171819
  1. Program Example4;
  2. { Program to demonstrate the LocalToEpoch function. }
  3. Uses linux;
  4. Var year,month,day,hour,minute,second : Word;
  5. begin
  6. Write ('Year : ');readln(Year);
  7. Write ('Month : ');readln(Month);
  8. Write ('Day : ');readln(Day);
  9. Write ('Hour : ');readln(Hour);
  10. Write ('Minute : ');readln(Minute);
  11. Write ('Seonds : ');readln(Second);
  12. Write ('This is : ');
  13. Write (LocalToEpoch(year,month,day,hour,minute,second));
  14. Writeln (' seconds past 00:00 1/1/1980');
  15. end.