Sha256: 25b60445afda5a47249df4b8df079d8b3c58aab98f8aea839996ac5b10319eba

Contents?: true

Size: 295 Bytes

Versions: 346

Compression:

Stored size: 295 Bytes

Contents

unit uLeap;

interface

type
  TYear = class
  public
    class function IsLeap(aYear: integer): Boolean; static;
  end;
implementation

class function TYear.IsLeap(aYear: integer): Boolean;
begin
  result := ((aYear mod 400) = 0) or (((aYear mod 4) = 0) and ((aYear mod 100) <> 0));
end;

end.

Version data entries

346 entries across 346 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.179 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.178 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.177 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.176 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.175 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.174 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.173 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.172 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.171 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.170 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.169 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.167 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.166 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.165 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.164 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.163 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.162 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.161 tracks/delphi/exercises/leap/uLeapExample.pas
trackler-2.2.1.160 tracks/delphi/exercises/leap/uLeapExample.pas