其他分享
首页 > 其他分享> > Delphi DateUtils

Delphi DateUtils

作者:互联网

uses DateUtils;

function StartOfTheYear(const AValue: TDateTime): TDateTime;
function EndOfTheYear(const AValue: TDateTime): TDateTime;
function StartOfAYear(const AYear: Word): TDateTime;
function EndOfAYear(const AYear: Word): TDateTime;

function StartOfTheMonth(const AValue: TDateTime): TDateTime;
function EndOfTheMonth(const AValue: TDateTime): TDateTime;
function StartOfAMonth(const AYear, AMonth: Word): TDateTime;
function EndOfAMonth(const AYear, AMonth: Word): TDateTime;

function StartOfTheWeek(const AValue: TDateTime): TDateTime;            {ISO 8601}
function EndOfTheWeek(const AValue: TDateTime): TDateTime;             {ISO 8601}
function StartOfAWeek(const AYear, AWeekOfYear: Word;  const ADayOfWeek: Word = 1): TDateTime;    {ISO 8601}
function EndOfAWeek(const AYear, AWeekOfYear: Word;  const ADayOfWeek: Word = 7): TDateTime;     {ISO 8601}

标签:function,DateUtils,Word,AValue,Delphi,TDateTime,AYear,const
来源: https://www.cnblogs.com/inocalli/p/10915913.html