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

« back to all changes in this revision

Viewing changes to docs/dosex/ex2.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 Example2;
2
 
uses Dos;
3
 
 
4
 
{ Program to demonstrate the GetDate function. }
5
 
 
6
 
const
7
 
  DayStr:array[0..6] of string[3]=('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
8
 
  MonthStr:array[1..12] of string[3]=('Jan','Feb','Mar','Apr','May','Jun',
9
 
                                      'Jul','Aug','Sep','Oct','Nov','Dec');
10
 
var
11
 
  Year,Month,Day,WDay : word;
12
 
begin
13
 
  GetDate(Year,Month,Day,WDay);
14
 
  WriteLn('Current date');
15
 
  WriteLn(DayStr[WDay],', ',Day,' ',MonthStr[Month],' ',Year,'.');
16
 
end.