modDateTime 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

IsLeapYear 函數

說明

是否為閏年

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
vYear Integer 4 必須 (無) 輸入目標年之西元年份

傳回值

傳回 Logical

範例

write(*,*) IsLeapYear(2000) ! 傳回 T
write(*,*) IsLeapYear(2004) ! 傳回 T
write(*,*) IsLeapYear(1900) ! 傳回 F
write(*,*) IsLeapYear(2001) ! 傳回 F

基本條件

Microsoft PowerStation 4.0 以後版本 | DateTime.f90

請參閱

modDateTime 函式庫