~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to docs/sysutex/ex4.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Program Example4;
2
 
 
3
 
{ This program demonstrates the DateTimeToString function }
4
 
 
5
 
Uses sysutils;
6
 
 
7
 
 
8
 
Procedure today (Fmt : string);
9
 
 
10
 
Var S : AnsiString;
11
 
 
12
 
begin
13
 
  DateTimeToString (S,Fmt,Date);
14
 
  Writeln (S);
15
 
end;
16
 
 
17
 
Procedure Now (Fmt : string);
18
 
 
19
 
Var S : AnsiString;
20
 
 
21
 
begin
22
 
  DateTimeToString (S,Fmt,Time);
23
 
  Writeln (S);
24
 
end;
25
 
 
26
 
Begin
27
 
  Today ('"Today is "dddd dd mmmm y');
28
 
  Today ('"Today is "d mmm yy');
29
 
  Today ('"Today is "d/mmm/yy');
30
 
  Now ('''The time is ''am/pmh:n:s');  
31
 
  Now ('''The time is ''hh:nn:ssam/pm');  
32
 
  Now ('''The time is ''tt');  
33
 
End.
 
 
b'\\ No newline at end of file'