C++ Builder 參考手冊(cè) ? System::Dateutils ? IsValidDateTime
判斷年幻碱、月骇笔、日蹋凝、時(shí)、分泰演、秒靴寂、毫秒是有效的日期和時(shí)間
頭文件:#include <System.DateUtils.hpp>
命名空間:System::Dateutils
函數(shù)原型:
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);
參數(shù):
- AYear:年塘揣,0001 - 9999辛掠;
- AMonth:月,1 - 12进陡;
- ADay:日愿阐,1 - 31;
- AHour:0 - 23趾疚;
- AMinute:0 - 59缨历;
- ASecond:0 - 59以蕴;
- AMilliSecond:0 - 999;
返回值:
- true:參數(shù)年辛孵、月丛肮、日、時(shí)魄缚、分宝与、秒、毫秒是有效的日期和時(shí)間冶匹;
- false:參數(shù)年习劫、月、日嚼隘、時(shí)榜聂、分、秒嗓蘑、毫秒不是有效的日期和時(shí)間。
相關(guān):
- 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 參考手冊(cè) ? System::Dateutils ? IsValidDateTime