官方网址:http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod#___top

  use Date::Calc qw(Days_in_YearDays_in_MonthWeeks_in_Yearleap_yearcheck_datecheck_timecheck_business_dateDay_of_YearDate_to_DaysDay_of_WeekWeek_NumberWeek_of_YearMonday_of_WeekNth_Weekday_of_Month_YearStandard_to_BusinessBusiness_to_StandardDelta_DaysDelta_DHMSDelta_YMDDelta_YMDHMSN_Delta_YMDN_Delta_YMDHMSNormalize_DHMSAdd_Delta_DaysAdd_Delta_DHMSAdd_Delta_YMAdd_Delta_YMDAdd_Delta_YMDHMSAdd_N_Delta_YMDAdd_N_Delta_YMDHMSSystem_ClockTodayNowToday_and_NowThis_YearGmtimeLocaltimeMktimeTimezoneDate_to_TimeTime_to_DateEaster_SundayDecode_MonthDecode_Day_of_WeekDecode_LanguageDecode_Date_EUDecode_Date_USFixed_WindowMoving_WindowCompressUncompresscheck_compressedCompressed_to_TextDate_to_TextDate_to_Text_LongEnglish_OrdinalCalendarMonth_to_TextDay_of_Week_to_TextDay_of_Week_AbbreviationLanguage_to_TextLanguageLanguagesDecode_Date_EU2Decode_Date_US2Parse_DateISO_LCISO_UC);use Date::Calc qw(:all);Days_in_Year$days = Days_in_Year($year,$month);Days_in_Month$days = Days_in_Month($year,$month);Weeks_in_Year$weeks = Weeks_in_Year($year);leap_yearif (leap_year($year))check_dateif (check_date($year,$month,$day))check_timeif (check_time($hour,$min,$sec))check_business_dateif (check_business_date($year,$week,$dow))Day_of_Year$doy = Day_of_Year($year,$month,$day);Date_to_Days$days = Date_to_Days($year,$month,$day);Day_of_Week$dow = Day_of_Week($year,$month,$day);Week_Number$week = Week_Number($year,$month,$day);          # DEPRECATEDWeek_of_Year($week,$year) = Week_of_Year($year,$month,$day); # RECOMMENDED$week = Week_of_Year($year,$month,$day);         # DANGEROUSMonday_of_Week($year,$month,$day) = Monday_of_Week($week,$year);Nth_Weekday_of_Month_Yearif (($year,$month,$day) =Nth_Weekday_of_Month_Year($year,$month,$dow,$n))Standard_to_Business($year,$week,$dow) =Standard_to_Business($year,$month,$day);Business_to_Standard($year,$month,$day) =Business_to_Standard($year,$week,$dow);Delta_Days$Dd = Delta_Days($year1,$month1,$day1,$year2,$month2,$day2);Delta_DHMS($Dd,$Dh,$Dm,$Ds) =Delta_DHMS($year1,$month1,$day1, $hour1,$min1,$sec1,$year2,$month2,$day2, $hour2,$min2,$sec2);Delta_YMD($Dy,$Dm,$Dd) =Delta_YMD($year1,$month1,$day1,$year2,$month2,$day2);Delta_YMDHMS($D_y,$D_m,$D_d, $Dh,$Dm,$Ds) =Delta_YMDHMS($year1,$month1,$day1, $hour1,$min1,$sec1,$year2,$month2,$day2, $hour2,$min2,$sec2);N_Delta_YMD($Dy,$Dm,$Dd) =N_Delta_YMD($year1,$month1,$day1,$year2,$month2,$day2);N_Delta_YMDHMS($D_y,$D_m,$D_d, $Dhh,$Dmm,$Dss) =N_Delta_YMDHMS($year1,$month1,$day1, $hour1,$min1,$sec1,$year2,$month2,$day2, $hour2,$min2,$sec2);Normalize_DHMS($Dd,$Dh,$Dm,$Ds) =Normalize_DHMS($Dd,$Dh,$Dm,$Ds);Add_Delta_Days($year,$month,$day) =Add_Delta_Days($year,$month,$day,$Dd);Add_Delta_DHMS($year,$month,$day, $hour,$min,$sec) =Add_Delta_DHMS($year,$month,$day, $hour,$min,$sec,$Dd,$Dh,$Dm,$Ds);Add_Delta_YM($year,$month,$day) =Add_Delta_YM($year,$month,$day,$Dy,$Dm);Add_Delta_YMD($year,$month,$day) =Add_Delta_YMD($year,$month,$day,$Dy,$Dm,$Dd);Add_Delta_YMDHMS($year,$month,$day, $hour,$min,$sec) =Add_Delta_YMDHMS($year,$month,$day, $hour,$min,$sec,$D_y,$D_m,$D_d, $Dh,$Dm,$Ds);Add_N_Delta_YMD($year,$month,$day) =Add_N_Delta_YMD($year,$month,$day,$Dy,$Dm,$Dd);Add_N_Delta_YMDHMS($year,$month,$day, $hour,$min,$sec) =Add_N_Delta_YMDHMS($year,$month,$day, $hour,$min,$sec,$D_y,$D_m,$D_d, $Dhh,$Dmm,$Dss);System_Clock($year,$month,$day, $hour,$min,$sec, $doy,$dow,$dst) =System_Clock([$gmt]);Today($year,$month,$day) = Today([$gmt]);Now($hour,$min,$sec) = Now([$gmt]);Today_and_Now($year,$month,$day, $hour,$min,$sec) = Today_and_Now([$gmt]);This_Year$year = This_Year([$gmt]);Gmtime($year,$month,$day, $hour,$min,$sec, $doy,$dow,$dst) =Gmtime([time]);Localtime($year,$month,$day, $hour,$min,$sec, $doy,$dow,$dst) =Localtime([time]);Mktime$time = Mktime($year,$month,$day, $hour,$min,$sec);Timezone($D_y,$D_m,$D_d, $Dh,$Dm,$Ds, $dst) = Timezone([time]);Date_to_Time$time = Date_to_Time($year,$month,$day, $hour,$min,$sec);Time_to_Date($year,$month,$day, $hour,$min,$sec) = Time_to_Date([time]);Easter_Sunday($year,$month,$day) = Easter_Sunday($year);Decode_Monthif ($month = Decode_Month($string[,$lang]))Decode_Day_of_Weekif ($dow = Decode_Day_of_Week($string[,$lang]))Decode_Languageif ($lang = Decode_Language($string))Decode_Date_EUif (($year,$month,$day) = Decode_Date_EU($string[,$lang]))Decode_Date_USif (($year,$month,$day) = Decode_Date_US($string[,$lang]))Fixed_Window$year = Fixed_Window($yy);Moving_Window$year = Moving_Window($yy);Compress$date = Compress($year,$month,$day);Uncompressif (($century,$year,$month,$day) = Uncompress($date))check_compressedif (check_compressed($date))Compressed_to_Text$string = Compressed_to_Text($date[,$lang]);Date_to_Text$string = Date_to_Text($year,$month,$day[,$lang]);Date_to_Text_Long$string = Date_to_Text_Long($year,$month,$day[,$lang]);English_Ordinal$string = English_Ordinal($number);Calendar$string = Calendar($year,$month[,$orthodox[,$lang]]);Month_to_Text$string = Month_to_Text($month[,$lang]);Day_of_Week_to_Text$string = Day_of_Week_to_Text($dow[,$lang]);Day_of_Week_Abbreviation$string = Day_of_Week_Abbreviation($dow[,$lang]);Language_to_Text$string = Language_to_Text($lang);Language$lang = Language();Language($lang);               # DEPRECATED$oldlang = Language($newlang); # DEPRECATEDLanguages$max_lang = Languages();Decode_Date_EU2if (($year,$month,$day) = Decode_Date_EU2($string[,$lang]))Decode_Date_US2if (($year,$month,$day) = Decode_Date_US2($string[,$lang]))Parse_Dateif (($year,$month,$day) = Parse_Date($string[,$lang]))ISO_LC$lower = ISO_LC($string);ISO_UC$upper = ISO_UC($string);Version$string = Date::Calc::Version();

转载于:https://www.cnblogs.com/james6176/p/3794407.html

Perl时间处理函数相关推荐

  1. 畅谈Perl时间处理函数用法

    原文网址:http://blog.chinaunix.net/uid-26000296-id-3491263.html 本文重点讨论Perl时间处理函数的概念, Perl能在绝大多数操作系统运行,可以 ...

  2. Clickhouse 时间日期函数

    Clickhouse 时间日期函数 Clickhouse 时间日期函数注:所有的时间日期函数都可以在第二个可选参数中接受时区参数.示例:Asia / Yekaterinburg.在这种情况下,它们使用 ...

  3. Python时间转换函数:时间转化为时间戳、时间戳转化为时间、当前日期、当前时间、星期几、前面或者后面多少天、年、月、日等

    Python时间转换函数:时间转化为时间戳.时间戳转化为时间.当前日期.当前时间.星期几.前面或者后面多少天.年.月.日等 #Python时间转换函数:时间转化为时间戳.时间戳转化为时间.当前日期.当 ...

  4. Mysql日期时间Extract函数介绍

    MySQL日期时间Extract函数的优点在于可以选取日期时间的各个部分,从年一直到微秒,让我们对MySQL日期时间的处理更为轻松. MySQL 日期时间 Extract(选取)函数. 1. 选取日期 ...

  5. php mysql 时间戳查询_mysql中时间查询函数(包括时间戳)

    mysql中时间查询函数(包括时间戳) 这些函数都是MySQL自带的,可以直接使用在PHP写的MySQL查询语句中哦 1-CURDATE()或CURRENT_DATE()和CURTIME()或CURR ...

  6. js时间格式化函数,支持Unix时间戳

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/ ...

  7. php获取date前1分钟hour,php时间轴函数,刚、1分钟前、1小时前、一天前

    php时间轴函数 ,刚刚.1分钟前.1小时前.一天前 php常见时间处理函数: time():返回当前的 Unix 时间戳?. date():格式化一个本地时间/日期. getdate():取得日期/ ...

  8. oracle 日期 extract,ORACLE——EXTRACT() 截取日期时间的函数使用

    1.截取日期的 年: --使用方法 EXTRACT(YEAR FROM DATE) SQL> SELECT EXTRACT( YEAR FROM SYSDATE ) FROM DUAL; --结 ...

  9. 日期和时间规范函数 (Entity SQL)

    下表显示 Entity SQL 日期和时间规范函数.datetime 为 DateTime 值. 功能 说明 AddNanoseconds( expression,number) 将指定的毫微秒 nu ...

最新文章

  1. inux 后台执行命令
  2. umdh windbg分析内存泄露
  3. 深度linux安装双,Deepin 20正式发布,新的外观和感觉,双内核安装
  4. hdu 1593(数学)
  5. 应用分类练手项目计划
  6. 舵机不会玩?看这篇!
  7. 安装Windows Nano Server虚拟机
  8. leetcode题解14-最长公共前缀
  9. 那年学过的Java笔记一SE基础
  10. javascript的拖放(第1部分)
  11. HDU2572 终曲【字符串匹配】
  12. java set的作用,Java的自学之路-构造方法 的作用以及与set方法的区别
  13. 【python】批量替换文本中的某部分内容
  14. 读书印记 - 《自私的基因》
  15. autoit3 ie.au3 函数之——_IEErrorNotify
  16. 惊呆了,Java居然已经内卷成菜花啦。
  17. 网络安全如何做?提防黑客来“敲门”
  18. python sns画布大小设置
  19. ArcGIS教程 - 附录 - ArcGIS快捷键
  20. 压缩png命令cmd_使用pngquant工具对PNG格式图片进行压缩

热门文章

  1. java notify 的作用_java 为什么notify和notifyAll都不起作用?
  2. char的初始值_java从入门到放弃 各种数组的初始值?
  3. java单循环 比较得分_java – 为什么两个单独的循环比一个快?
  4. python web开发框架flask_Python Web 开发框架,Flask 与 Django那个更好
  5. java栈 迷宫_利用栈实现迷宫的求解
  6. wdcp php5.3 pdo_mysql,WDCP常用组件(memcache、mysqli、PDO_MYSQL、mysql innodb、libmcrypt、php zip)的安装方法...
  7. Python OpenCV GrabCut进行前景分割和提取
  8. h5 video视频播放的同时加水印,图片加水印同样的原理
  9. opencv拟合高维曲线
  10. 【python】 OSError:sift not found 问题解决