zoukankan      html  css  js  c++  java
  • Delphi中本年、本月、本周第一天和最后一天

    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;                  {ISO 8601}
       const ADayOfWeek: Word = 1): TDateTime;
    function EndOfAWeek(const AYear, AWeekOfYear: Word;                    {ISO 8601}
       const ADayOfWeek: Word = 7): TDateTime;

  • 相关阅读:
    网页显示UIWebView(一个)
    借百度数据,建立你自己的程序
    引水数据--紧凑
    Unity3d 实时折射和反射
    snmp监控磁盘
    Linux snmp监控
    20监控工具
    Java 四舍五入
    Oracle主键操作
    SnmpTrap
  • 原文地址:https://www.cnblogs.com/mikemao/p/2218858.html
Copyright © 2011-2022 走看看