\Neuron\UtilDate

Summary

Methods
Properties
Constants
isLeapYear()
subtractDays()
getCurrentMonthStartDate()
getDaysInMonth()
getCurrentMonthEndDate()
getMySqlDateTime()
getMySqlDate()
dateToJulian()
julianToDate()
diff()
normalizeDate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isLeapYear()

isLeapYear(mixed $iYear) : bool

Parameters

mixed $iYear

Returns

bool

subtractDays()

subtractDays(mixed $iDays, string $sDate) : bool|string

Parameters

mixed $iDays
string $sDate

Returns

bool|string —
  • new date

getCurrentMonthStartDate()

getCurrentMonthStartDate()

getDaysInMonth()

getDaysInMonth( $iMonth,  $iYear)

Parameters

$iMonth
$iYear

getCurrentMonthEndDate()

getCurrentMonthEndDate()

getMySqlDateTime()

getMySqlDateTime( $date_time)

Parameters

$date_time

getMySqlDate()

getMySqlDate( $date_time)

Parameters

$date_time

dateToJulian()

dateToJulian( $dt)

Parameters

$dt

julianToDate()

julianToDate( $dt)

Parameters

$dt

diff()

diff( $endDate,  $beginDate)

Parameters

$endDate
$beginDate

normalizeDate()

normalizeDate( $dt)

Parameters

$dt