summaryrefslogtreecommitdiff
path: root/fpcdocs/sysutex/ex10.pp
blob: 48c03b09d2901a67a0996043d9db7aadcd30e1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Program Example10;

{ This program demonstrates the DecodeTime function }

Uses sysutils;

Var HH,MM,SS,MS: Word;

Begin
  DecodeTime(Time,HH,MM,SS,MS);
  Writeln (format('The time is %d:%d:%d.%d',[hh,mm,ss,ms]));
End.