Trait Readers
Methods summary
public
__get( string $property
)
: mixed
Parameters
Returns
mixed
Throws
LogicException
in attempt to obtain an undefined property.
protected
get_timestamp( void )
: integer
protected
get_tuesday( void )
: ICanBoogie\DateTime
Returns Tuesday of the week.
Returns Tuesday of the week.
Returns
protected
get_wednesday( void )
: ICanBoogie\DateTime
Returns Wednesday of the week.
Returns Wednesday of the week.
Returns
protected
get_thursday( void )
: ICanBoogie\DateTime
Returns Thursday of the week.
Returns Thursday of the week.
Returns
protected
get_friday( void )
: ICanBoogie\DateTime
Returns Friday of the week.
Returns Friday of the week.
Returns
protected
get_saturday( void )
: ICanBoogie\DateTime
Returns Saturday of the week.
Returns Saturday of the week.
Returns
protected
get_sunday( void )
: ICanBoogie\DateTime
Returns Sunday of the week.
Returns Sunday of the week.
Returns
protected
get_is_dst( void )
: boolean
Properties summary
Magic properties
public read-only
$timestamp
: integer
public read-only
$year
: integer
public read-only
$month
: integer
public read-only
$day
: integer
public read-only
$hour
: integer
public read-only
$minute
: integer
public read-only
$second
: integer
public read-only
$quarter
: integer
public read-only
$week
: integer
public read-only
$weekday
: integer
public read-only
$year_day
: integer
public read-only
$tomorrow
: ICanBoogie\DateTime
A new instance representing the next day. Time is reset to 00:00:00.
public read-only
$yesterday
: ICanBoogie\DateTime
A new instance representing the previous day. Time is reset to 00:00:00.
public read-only
$monday
: ICanBoogie\DateTime
A new instance representing Monday of the week. Time is reset to 00:00:00.
public read-only
$tuesday
: ICanBoogie\DateTime
A new instance representing Tuesday of the week. Time is reset to 00:00:00.
public read-only
$wednesday
: ICanBoogie\DateTime
A new instance representing Wednesday of the week. Time is reset to 00:00:00.
public read-only
$thursday
: ICanBoogie\DateTime
A new instance representing Thursday of the week. Time is reset to 00:00:00.
public read-only
$friday
: ICanBoogie\DateTime
A new instance representing Friday of the week. Time is reset to 00:00:00.
public read-only
$saturday
: ICanBoogie\DateTime
A new instance representing Saturday of the week. Time is reset to 00:00:00.
public read-only
$sunday
: ICanBoogie\DateTime
A new instance representing Sunday of the week. Time is reset to 00:00:00.
public read-only
$is_monday
: boolean
true
if the instance represents Monday.
public read-only
$is_tuesday
: boolean
true
if the instance represents Tuesday.
public read-only
$is_wednesday
: boolean
true
if the instance represents Wednesday.
public read-only
$is_thursday
: boolean
true
if the instance represents Thursday.
public read-only
$is_friday
: boolean
true
if the instance represents Friday.
public read-only
$is_saturday
: boolean
true
if the instance represents Saturday.
public read-only
$is_sunday
: boolean
true
if the instance represents Sunday.
public read-only
$is_today
: boolean
true
if the instance is today.
public read-only
$is_past
: boolean
true
if the instance lies in the past.
public read-only
$is_future
: boolean
true
if the instance lies in the future.
public read-only
$is_empty
: boolean
true
if the instance represents an empty date such as "0000-00-00" or "0000-00-00 00:00:00".
public read-only
$as_atom
: string
The instance formatted according to ATOM.
public read-only
$as_cookie
: string
The instance formatted according to COOKIE.
public read-only
$as_iso8601
: string
The instance formatted according to ISO8601.
public read-only
$as_rfc822
: string
The instance formatted according to RFC822.
public read-only
$as_rfc850
: string
The instance formatted according to RFC850.
public read-only
$as_rfc1036
: string
The instance formatted according to RFC1036.
public read-only
$as_rfc1123
: string
The instance formatted according to RFC1123.
public read-only
$as_rfc2822
: string
The instance formatted according to RFC2822.
public read-only
$as_rfc3339
: string
The instance formatted according to RFC3339.
public read-only
$as_w3c
: string
The instance formatted according to W3C.
public read-only
$as_db
: string
The instance formatted according to DB.
public read-only
$as_number
: string
The instance formatted according to NUMBER.
public read-only
$as_date
: string
The instance formatted according to DATE.
public read-only
$as_time
: string
The instance formatted according to TIME.
public read-only
$is_utc
: boolean
true
if the instance is in the UTC timezone.
public read-only
$is_local
: boolean
true
if the instance is in the local timezone.
public read-only
$is_dst
: boolean
true
if time occurs during Daylight Saving Time in its time zone.