ex42.pp 458 B

123456789101112131415161718
  1. Program Example42;
  2. { This program demonstrates the WeekOfTheMonth function }
  3. Uses SysUtils,DateUtils;
  4. Var
  5. N : TDateTime;
  6. Begin
  7. N:=Now;
  8. Writeln('Day of the Week : ',DayOfTheWeek(N));
  9. Writeln('Hour of the Week : ',HourOfTheWeek(N));
  10. Writeln('Minute of the Week : ',MinuteOfTheWeek(N));
  11. Writeln('Second of the Week : ',SecondOfTheWeek(N));
  12. Writeln('MilliSecond of the Week : ',
  13. MilliSecondOfTheWeek(N));
  14. End.