ex40.pp 574 B

1234567891011121314151617181920
  1. Program Example40;
  2. { This program demonstrates the WeekOfTheYear function }
  3. Uses SysUtils,DateUtils;
  4. Var
  5. N : TDateTime;
  6. Begin
  7. N:=Now;
  8. Writeln('Month of the year : ',MonthOfTheYear(N));
  9. Writeln('Week of the year : ',WeekOfTheYear(N));
  10. Writeln('Day of the year : ',DayOfTheYear(N));
  11. Writeln('Hour of the year : ',HourOfTheYear(N));
  12. Writeln('Minute of the year : ',MinuteOfTheYear(N));
  13. Writeln('Second of the year : ',SecondOfTheYear(N));
  14. Writeln('MilliSecond of the year : ',
  15. MilliSecondOfTheYear(N));
  16. End.