常用工具: 简繁转换 HTML/JS互转 Url编码Escape解析 Unicode编码转换 设为首页 加入收藏夹
更多内容
" id="arctext" class="center" " class="arcinfo center" " id="slistl" class="left" " id="mid_slistl_sch" class="left" " id="mid_slistl_adv" class="left" " id="mid_slistl_adv2" " src="http://www.fzs8.net/d/js/acmsd/middle2.js"
文章正文

ASP Hex 函数

来源:  网络收集  字体:[ ]
站内搜索系统
文章正文

php cal_to_jd() 函数

来源:  网络收集  2006-09-30 00:00:00 字体:[ ]

Definition and Usage
定义和用法

The cal_to_jd() function converts a specified date to Julian day count.
cal_to_jd()函数的作用是:将指定日期转为儒略日计数

Syntax
语法

cal_to_jd(calendar,month,day,year)

Parameter
参数
Description
描述
calendar Required. Specifies the calendar to use. The following calendar values can be used:
 必要参数。指定需要使用的日历。下面列举了所有可用的参数:
  • CAL_GREGORIAN
    CAL_GREGORIAN:格里高里历
  • CAL_JULIAN
    CAL_JULIAN:罗马儒略历
  • CAL_JEWISH
    CAL_JEWISH:犹太历
  • CAL_FRENCH
    CAL_FRENCH:法国共和历
month Required. Specifies the month
必要参数。指定月份
day Required. Specifies the day
必要参数。指定日
year Required. Specifies the year
必要参数。指定年份


Example
案例

<?php$d=cal_to_jd(CAL_GREGORIAN,10,03,2005);echo($d);?>

The output of the code above will be:
上述代码将输出下面的结果:

2453647


  
上一篇:php cal_info() 函数
下一篇:php easter_date() 函数
最新文章
推荐文章
热门文章
版权所有:IT加油站   COPYRIGHT © 2007 WWW.FZS8.NET ALL RIGHTS RESERVED.
闽ICP备08008535号