cgidate.dpr

来自「delphi6 programming example」· DPR 代码 · 共 24 行

DPR
24
字号
program CgiDate;

{$APPTYPE CONSOLE}

uses
  SysUtils;

begin
  writeln ('content-type: text/html');
  writeln;
  writeln ('<html><head>');
  writeln ('<title>Time at this site</title>');
  writeln ('</head><body>');
  writeln ('<h1>Time at this site</h1>');
  writeln ('<h2>');
  writeln (FormatDateTime(
    '"Today is " dddd, mmmm d, yyyy, ' +
    '"<br> and the time is" hh:mm AM/PM',
     Now));
  writeln ('</h2>');
  writeln ('<hr><i>Page generated by CgiDate.exe</i>');
  writeln ('</body></html>');
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?