C++ Builder 參考手冊(cè) ? System::Dateutils ? YearOf
提取日期時(shí)間當(dāng)中的年
頭文件:#include <System.DateUtils.hpp>
命名空間:System::Dateutils
函數(shù)原型:
System::Word __fastcall YearOf(const System::TDateTime AValue);
參數(shù):
- AValue:日期時(shí)間類型變量挽唉;
返回值:
- 返回值為提取日期時(shí)間當(dāng)中的年舔腾,1 - 9999
- 如果要同時(shí)提取出年秉扑、月茁彭、日难述,可以用函數(shù) DecodeDate;
如果要同時(shí)提取出時(shí)草冈、分砂客、秒、毫秒莹痢,可以用函數(shù) DecodeTime种蘸;
如果要同時(shí)提取出年、月竞膳、日航瞭、時(shí)、分坦辟、秒刊侯、毫秒,可以用函數(shù) DecodeDateTime锉走。
相關(guān):
- System::Dateutils::DateOf
- System::Dateutils::DateTimeToUnix
- System::Dateutils::DayOf
- System::Dateutils::DayOfTheMonth
- System::Dateutils::DayOfTheWeek
- System::Dateutils::DayOfTheYear
- System::Dateutils::DecodeDateTime
- System::Dateutils::EncodeDateTime
- System::Dateutils::HourOf
- System::Dateutils::MilliSecondOf
- System::Dateutils::MinuteOf
- System::Dateutils::MonthOf
- System::Dateutils::SecondOf
- System::Dateutils::TimeOf
- System::Dateutils::TryEncodeDateTime
- System::Dateutils::UnixToDateTime
- System::Dateutils::YearOf
- System::Dateutils
- System::Sysutils::CurrentYear
- System::Sysutils::Date
- System::Sysutils::DecodeDate
- System::Sysutils::DecodeDateFully
- System::Sysutils::DecodeTime
- System::Sysutils::EncodeDate
- System::Sysutils::EncodeTime
- System::Sysutils::FormatDateTime
- System::Sysutils::Now
- System::Sysutils::Time
- System::Sysutils::TryEncodeDate
- System::Sysutils::TryEncodeTime
- System::Sysutils::TryStrToDate
- System::Sysutils::TryStrToDateTime
- System::Sysutils::TryStrToTime
- System::Sysutils
C++ Builder 參考手冊(cè) ? System::Dateutils ? YearOf