~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/sysutex/ex4.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

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'