mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-26 16:38:19 +02:00
19 lines
528 B
ObjectPascal
19 lines
528 B
ObjectPascal
Program Example41;
|
|
|
|
{ This program demonstrates the WeekOfTheMonth function }
|
|
|
|
Uses SysUtils,DateUtils;
|
|
|
|
Var
|
|
N : TDateTime;
|
|
|
|
Begin
|
|
N:=Now;
|
|
Writeln('Week of the Month : ',WeekOfTheMonth(N));
|
|
Writeln('Day of the Month : ',DayOfTheMonth(N));
|
|
Writeln('Hour of the Month : ',HourOfTheMonth(N));
|
|
Writeln('Minute of the Month : ',MinuteOfTheMonth(N));
|
|
Writeln('Second of the Month : ',SecondOfTheMonth(N));
|
|
Writeln('MilliSecond of the Month : ',
|
|
MilliSecondOfTheMonth(N));
|
|
End. |