Share via


DateTime.IsLeapYear メソッド

指定した年が閏年かどうかを示す値を返します。

Public Shared Function IsLeapYear( _
   ByVal year As Integer _) As Boolean
[C#]
public static bool IsLeapYear(intyear);
[C++]
public: static bool IsLeapYear(intyear);
[JScript]
public static function IsLeapYear(
   year : int) : Boolean;

パラメータ

  • year
    4 桁の年。

戻り値

year が閏年である場合は true 。それ以外の場合は false

解説

year は、4 桁の 10 進値 (1996 など) で指定します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

DateTime 構造体 | DateTime メンバ | System 名前空間