Class DateTime
Methods summary
public static
|
|
public static
|
#
getWeekDay( $timestamp = TIMESTAMP )
|
public static
string
|
#
getlunarCalendar( )
生成一个日期+星期+农历的字符串,如4月16日星期二农历三月初七
生成一个日期+星期+农历的字符串,如4月16日星期二农历三月初七
Returns
string
|
public static
array
|
#
getStrTimeScope( string $strTime, $time = TIMESTAMP )
获取字符串时间($strTime)所代表的时间范围
获取字符串时间($strTime)所代表的时间范围
Parameters
Returns
array 时间范围
|
public static
string
|
#
getTime( integer $secs, $format = 'dhis' )
根据秒数获得更人性化的时间提示
Parameters
Returns
string 格式化后的时间格式
|
public static
integer
|
#
getDays( integer $start, integer $end )
根据两个时间戳来求出期间的天数
Parameters
Returns
integer 天数
|
public static
|
#
getDiffDate( $date1, $date2 )
|
public static
integer
|
#
getSeasonByMonty( integer $month )
根据月份返回第几季度
Parameters
Returns
integer 季度
|
public static
type
|
#
getFormatDate( type $start, type $end, type $type = 'Y-m-d' )
根据两个时间戳来格式化$type指定的日期类型
Parameters
- $start
- $end
- $type
- $filter
Returns
type
|
public static
array
|
#
getWeeks( $date = null )
获取某日所在的当前一个星期时间
Returns
array
|