\DateHelper

DateHelper Helper

Add your application-wide methods in the class below, your helpers will inherit them.

Summary

Methods
Properties
Constants
dateFormat()
$helpers
No constants found
_isToday()
_isThisYear()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : array

use helpers

Type

array

Methods

dateFormat()

dateFormat(\datetime  $date, null|string  $format = null) : array

Date Format

Parameters

\datetime $date

datetime

null|string $format

フォーマット

Returns

array

_isToday()

_isToday(string  $date) : boolean

ユーザタイムゾーンで今日の日付かの判定

Parameters

string $date

user timezone datetime

Returns

boolean

_isThisYear()

_isThisYear(string  $date) : boolean

ユーザタイムゾーンで今年の日時かの判定

Parameters

string $date

user timezone datetime

Returns

boolean