HourOfTheYear - C++ Builder
2022-08-04 本文已影响0人
玄坴
C++ Builder 参考手册 ➙ System::Dateutils ➙ HourOfTheYear
这个日期时间在这一年的第几个小时
头文件:#include <System.DateUtils.hpp>
命名空间:System::Dateutils
函数原型:
System::Word __fastcall HourOfTheYear(const System::TDateTime AValue);
参数:
- AValue:日期时间类型变量;
返回值:
- 这个日期时间在这一年的第几个小时,从 0 开始:平年 0 - 8759,闰年 0 - 8783;
- 1月1日0时,是这一年的第 0 个小时,平年一共 365 天 * 24 = 8760 小时,12月31日23时为这一年的最后一个小时,即第 8759 个小时;闰年一共 366 天 * 24 = 8784 小时,12月31日23时为这一年的最后一个小时,即第 8783 个小时。
相关:
- System::Dateutils::MonthOfTheYear
- System::Dateutils::WeekOfTheYear
- System::Dateutils::DayOfTheYear
- System::Dateutils::HourOfTheYear
- System::Dateutils::MinuteOfTheYear
- System::Dateutils::SecondOfTheYear
- System::Dateutils::MilliSecondOfTheYear
- 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 参考手册 ➙ System::Dateutils ➙ HourOfTheYear