ICanBoogie/DateTime 2.0.x
  • Namespace
  • Class

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 ICanBoogie\DateTime
# modify( string $modify )

Parameters

$modify

Returns

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

Parameters

$property

Returns

mixed

Throws

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

Returns

integer
protected ICanBoogie\ImmutableDateTime
# get_monday( )

Returns Monday of the week.

Returns Monday of the week.

Returns

ICanBoogie\ImmutableDateTime
protected ICanBoogie\DateTime
# get_tuesday( )

Returns Tuesday of the week.

Returns Tuesday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_wednesday( )

Returns Wednesday of the week.

Returns Wednesday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_thursday( )

Returns Thursday of the week.

Returns Thursday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_friday( )

Returns Friday of the week.

Returns Friday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_saturday( )

Returns Saturday of the week.

Returns Saturday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_sunday( )

Returns Sunday of the week.

Returns Sunday of the week.

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_tomorrow( )

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_yesterday( )

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_mutable( )

Returns

ICanBoogie\DateTime
protected ICanBoogie\DateTime
# get_immutable( )

Returns

ICanBoogie\DateTime
protected boolean
# get_is_dst( )

Returns

boolean
protected ICanBoogie\TimeZone
# get_timezone( )

Returns

ICanBoogie\TimeZone
protected ICanBoogie\TimeZone
# get_tz( )

Returns

ICanBoogie\TimeZone

Properties summary

Magic properties

public read-only integer $timestamp

Unix timestamp.

public read-only integer $year

Year.

public read-only integer $month

Month of the year.

public read-only integer $day

Day of the month.

public read-only integer $hour

Hour of the day.

public read-only integer $minute

Minute of the hour.

public read-only integer $second

Second of the minute.

public read-only integer $quarter

Quarter of the year.

public read-only integer $week

Week of the year.

public read-only integer $weekday

Day of the week.

public read-only integer $year_day

Day of the year.

public read-only ICanBoogie\DateTime $tomorrow

A new instance representing the next day. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $yesterday

A new instance representing the previous day. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $monday

A new instance representing Monday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $tuesday

A new instance representing Tuesday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $wednesday

A new instance representing Wednesday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $thursday

A new instance representing Thursday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $friday

A new instance representing Friday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $saturday

A new instance representing Saturday of the week. Time is reset to 00:00:00.

public read-only ICanBoogie\DateTime $sunday

A new instance representing Sunday of the week. Time is reset to 00:00:00.

public read-only boolean $is_monday

true if the instance represents Monday.

public read-only boolean $is_tuesday

true if the instance represents Tuesday.

public read-only boolean $is_wednesday

true if the instance represents Wednesday.

public read-only boolean $is_thursday

true if the instance represents Thursday.

public read-only boolean $is_friday

true if the instance represents Friday.

public read-only boolean $is_saturday

true if the instance represents Saturday.

public read-only boolean $is_sunday

true if the instance represents Sunday.

public read-only boolean $is_today

true if the instance is today.

public read-only boolean $is_past

true if the instance lies in the past.

public read-only boolean $is_future

true if the instance lies in the future.

public read-only boolean $is_empty

true if the instance represents an empty date such as "0000-00-00" or "0000-00-00 00:00:00".

public read-only string $as_atom

The instance formatted according to ATOM.

public read-only string $as_cookie

The instance formatted according to COOKIE.

public read-only string $as_iso8601

The instance formatted according to ISO8601.

public read-only string $as_rfc822

The instance formatted according to RFC822.

public read-only string $as_rfc850

The instance formatted according to RFC850.

public read-only string $as_rfc1036

The instance formatted according to RFC1036.

public read-only string $as_rfc1123

The instance formatted according to RFC1123.

public read-only string $as_rfc2822

The instance formatted according to RFC2822.

public read-only string $as_rfc3339

The instance formatted according to RFC3339.

public read-only string $as_rss

The instance formatted according to RSS.

public read-only string $as_w3c

The instance formatted according to W3C.

public read-only string $as_db

The instance formatted according to DB.

public read-only string $as_number

The instance formatted according to NUMBER.

public read-only string $as_date

The instance formatted according to DATE.

public read-only string $as_time

The instance formatted according to TIME.

public read-only ICanBoogie\TimeZone $timezone

The timezone of the instance.

public read-only ICanBoogie\TimeZone $tz

The timezone of the instance.

public read-only boolean $is_utc

true if the instance is in the UTC timezone.

public read-only boolean $is_local

true if the instance is in the local timezone.

public read-only boolean $is_dst

true if time occurs during Daylight Saving Time in its time zone.

public read-only ICanBoogie\ImmutableDateTime $immutable

An immutable representation of the instance.

public read-only ICanBoogie\MutableDateTime $mutable

A mutable representation of the instance.

ICanBoogie/DateTime 2.0.x API documentation generated by ApiGen