summaryrefslogtreecommitdiff
path: root/fpcdocs/datutex/ex79.pp
blob: d65afff8c80a5125555bee377785c4b7ed09b7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Program Example79;

{ This program demonstrates the DecodeDateTime function }

Uses SysUtils,DateUtils;

Var
  Y,Mo,D,H,Mi,S,MS : Word;
  TS : TDateTime;

Begin
  DecodeDateTime(Now,Y,Mo,D,H,Mi,S,MS);
  TS:=EncodeDateTime(Y,Mo,D,H,Mi,S,MS);
  Writeln('Now is : ',DateTimeToStr(TS));
End.