summaryrefslogtreecommitdiff
path: root/fpcdocs/datutex/ex91.pp
blob: 16142e07d40dfd79013bedbf6dadd5c1a5c0460f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Program Example91;

{ This program demonstrates the RecodeMinute function }

Uses SysUtils,DateUtils;

Const
  Fmt = 'dddd dd mmmm yyyy hh:nn:ss';

Var
  S : AnsiString;

Begin
  S:=FormatDateTime(Fmt,RecodeMinute(Now,0));
  Writeln('This moment in the first minute of the hour: ',S);
End.