C++ Builder 參考手冊(cè) ? System::Dateutils ? DayOfTheWeek
這個(gè)日期時(shí)間在所在周的第幾天 (ISO 8601) / 這一天是星期幾
頭文件:#include <System.DateUtils.hpp>
命名空間:System::Dateutils
函數(shù)原型:
System::Word __fastcall DayOfTheWeek(const System::TDateTime AValue);
參數(shù):
- AValue:日期時(shí)間類型變量妒蔚;
返回值:
- 這個(gè)日期時(shí)間在所在周的第幾天 (ISO 8601) / 這一天是星期幾 (1 - 7)翼闹;
1: 一周的第一天坠陈,星期一除破;
2: 一周的第二天,星期二;
……
7: 一周的第七天,星期日; - 可以用函數(shù) DecodeDateWeek 得到年抵碟、這一年的第幾周、這個(gè)周的第幾天坏匪;
可以用函數(shù) DecodeDateMonthWeek 得到年拟逮、月、這個(gè)月的第幾周适滓、這個(gè)周的第幾天敦迄; - 注意:函數(shù) DecodeDateFully 得到的星期幾是美國(guó)習(xí)慣的,而不是 ISO 8601 國(guó)際標(biāo)準(zhǔn)凭迹,也不符合中國(guó)習(xí)慣罚屋;本文前面涉及到的其他幾個(gè)函數(shù)都是 ISO 8601 國(guó)際標(biāo)準(zhǔn)的,符合中國(guó)習(xí)慣的嗅绸。
相關(guān):
- System::Dateutils::DateOf
- System::Dateutils::DateTimeToUnix
- System::Dateutils::DayOf
- System::Dateutils::DayOfTheMonth
- System::Dateutils::DayOfTheWeek
- System::Dateutils::DayOfTheYear
- System::Dateutils::DecodeDateMonthWeek
- System::Dateutils::DecodeDateTime
- System::Dateutils::DecodeDateWeek
- System::Dateutils::EncodeDateMonthWeek
- System::Dateutils::EncodeDateTime
- System::Dateutils::EncodeDateWeek
- System::Dateutils::HourOf
- System::Dateutils::HourOfTheMonth
- System::Dateutils::HourOfTheYear
- System::Dateutils::IsValidDateMonthWeek
- System::Dateutils::IsValidDateWeek
- System::Dateutils::MilliSecondOf
- System::Dateutils::MilliSecondOfTheYear
- System::Dateutils::MinuteOf
- System::Dateutils::MinuteOfTheMonth
- System::Dateutils::MinuteOfTheYear
- System::Dateutils::MonthOf
- System::Dateutils::MonthOfTheYear
- System::Dateutils::SecondOf
- System::Dateutils::SecondOfTheMonth
- System::Dateutils::SecondOfTheYear
- System::Dateutils::TimeOf
- System::Dateutils::TryEncodeDateTime
- System::Dateutils::UnixToDateTime
- System::Dateutils::WeekOfTheMonth
- System::Dateutils::WeekOfTheYear
- System::Dateutils::WeeksInYear
- 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 ? DayOfTheWeek