\DtApp\ThinkLibrary\facadeTimes

时间门面

Summary

Methods
Properties
Constants
getData()
getTime()
getUDate()
getTimeDifference()
dateToTimestamp()
timestampToDate()
dateRear()
dateBefore()
checkIsBetweenTime()
No public properties found
No constants found
getFacadeClass()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getData()

getData(string  $format = "Y-m-d) : string

当前时间

Parameters

string $format

Returns

string

getTime()

getTime() : string

当前时间戳

Returns

string

getUDate()

getUDate() : string

当前时间戳

Returns

string

getTimeDifference()

getTimeDifference(string  $end_time, string  $start_time) : string

计算两个时间差

Parameters

string $end_time
string $start_time

Returns

string

dateToTimestamp()

dateToTimestamp(string  $date) : string

将指定日期转换为时间戳

Parameters

string $date

Returns

string

timestampToDate()

timestampToDate(integer  $time, string  $format = "Y-m-d) : string

将指定时间戳转换为日期

Parameters

integer $time
string $format

Returns

string

dateRear()

dateRear(string  $format = "Y-m-d, integer  $mun = 10, integer  $time) : string

在某个时间之前的时间

Parameters

string $format
integer $mun
integer $time

Returns

string

dateBefore()

dateBefore(string  $format = "Y-m-d, integer  $mun = 10, integer  $time) : string

在某个时间之后的时间

Parameters

string $format
integer $mun
integer $time

Returns

string

checkIsBetweenTime()

checkIsBetweenTime(string  $start, string  $end) : boolean

判断当前的时分是否在指定的时间段内

Parameters

string $start
string $end

Returns

boolean

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名(或者已经绑定的容器对象标识)

Returns

string