ICanBoogie
  • Documentation
  • API Reference
  • DateTime 2.0.x
Namespaces
  • ICanBoogie
    • DateTime
Traits
  • Readers
  • Shared

Trait Readers

Direct Known Users

ICanBoogie\ImmutableDateTime, ICanBoogie\MutableDateTime

Namespace: ICanBoogie\DateTime
Located at DateTime/Readers.php

Methods summary

abstract public modify( string $modify ) : ICanBoogie\DateTime

Parameters

$modify

Returns

ICanBoogie\DateTime
public __get( string $property ) : mixed

Parameters

$property

Returns

mixed

Throws

LogicException
in attempt to obtain an undefined property.
protected get_timestamp( void ) : integer

Returns

integer
protected get_monday( void ) : ICanBoogie\ImmutableDateTime

Returns Monday of the week.

Returns Monday of the week.

Returns

ICanBoogie\ImmutableDateTime
protected get_tuesday( void ) : ICanBoogie\DateTime

Returns Tuesday of the week.

Returns Tuesday of the week.

Returns

ICanBoogie\DateTime
protected get_wednesday( void ) : ICanBoogie\DateTime

Returns Wednesday of the week.

Returns Wednesday of the week.

Returns

ICanBoogie\DateTime
protected get_thursday( void ) : ICanBoogie\DateTime

Returns Thursday of the week.

Returns Thursday of the week.

Returns

ICanBoogie\DateTime
protected get_friday( void ) : ICanBoogie\DateTime

Returns Friday of the week.

Returns Friday of the week.

Returns

ICanBoogie\DateTime
protected get_saturday( void ) : ICanBoogie\DateTime

Returns Saturday of the week.

Returns Saturday of the week.

Returns

ICanBoogie\DateTime
protected get_sunday( void ) : ICanBoogie\DateTime

Returns Sunday of the week.

Returns Sunday of the week.

Returns

ICanBoogie\DateTime
protected get_tomorrow( void ) : ICanBoogie\DateTime

Returns

ICanBoogie\DateTime
protected get_yesterday( void ) : ICanBoogie\DateTime

Returns

ICanBoogie\DateTime
protected get_mutable( void ) : ICanBoogie\DateTime

Returns

ICanBoogie\DateTime
protected get_immutable( void ) : ICanBoogie\DateTime

Returns

ICanBoogie\DateTime
protected get_is_dst( void ) : boolean

Returns

boolean
protected get_timezone( void ) : ICanBoogie\TimeZone

Returns

ICanBoogie\TimeZone
protected get_tz( void ) : ICanBoogie\TimeZone

Returns

ICanBoogie\TimeZone

Properties summary

Magic properties

public read-only $timestamp : integer

Unix timestamp.

public read-only $year : integer

Year.

public read-only $month : integer

Month of the year.

public read-only $day : integer

Day of the month.

public read-only $hour : integer

Hour of the day.

public read-only $minute : integer

Minute of the hour.

public read-only $second : integer

Second of the minute.

public read-only $quarter : integer

Quarter of the year.

public read-only $week : integer

Week of the year.

public read-only $weekday : integer

Day of the week.

public read-only $year_day : integer

Day of the year.

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_rss : string

The instance formatted according to RSS.

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 $timezone : ICanBoogie\TimeZone

The timezone of the instance.

public read-only $tz : ICanBoogie\TimeZone

The timezone of the instance.

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.

public read-only $immutable : ICanBoogie\ImmutableDateTime

An immutable representation of the instance.

public read-only $mutable : ICanBoogie\MutableDateTime

A mutable representation of the instance.

DateTime 2.0.x – Check on GitHub – API documentation generated by ApiGen