C++ Builder 参考手册 ➙ System::Dateutils ➙ IsValidDateTime
判断年、月、日、时、分、秒、毫秒是有效的日期和时间
头文件:#include <System.DateUtils.hpp>
命名空间:System::Dateutils
函数原型:
bool __fastcall IsValidDateTime(
const System::Word AYear,
const System::Word AMonth,
const System::Word ADay,
const System::Word AHour,
const System::Word AMinute,
const System::Word ASecond,
const System::Word AMilliSecond);
参数:
- AYear:年,0001 - 9999;
- AMonth:月,1 - 12;
- ADay:日,1 - 31;
- AHour:0 - 23;
- AMinute:0 - 59;
- ASecond:0 - 59;
- AMilliSecond:0 - 999;
返回值:
- true:参数年、月、日、时、分、秒、毫秒是有效的日期和时间;
- false:参数年、月、日、时、分、秒、毫秒不是有效的日期和时间。
相关:
- System::Dateutils::IsInLeapYear
- System::Dateutils::IsPM
- System::Dateutils::IsAM
- System::Dateutils::IsValidDate
- System::Dateutils::IsValidTime
- System::Dateutils::IsValidDateTime
- System::Dateutils::IsValidDateMonthWeek
- System::Dateutils::IsValidDateDay
- System::Dateutils::IsValidDateWeek
- System::Dateutils
- System::Sysutils::IsLeapYear
- System::Sysutils
C++ Builder 参考手册 ➙ System::Dateutils ➙ IsValidDateTime
网友评论