xplo.re Medusa Core Framework 3.2
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • Type
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Authentication
  • Authentication_Token
  • AutoLoader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Configuration
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • Version

Class Date

Helper class for standard HTTP date formats.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Date
Namespace: Core
Package: Core
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Date.inc.php

Methods summary

public
# __construct( integer|string $dateTime = null )

Initialised a new instance with an optional timestamp.

Initialised a new instance with an optional timestamp.

Parameters

$dateTime

Optional. UNIX timestamp or date string to initialise instance with. If this parameter (per default) is null, the current server time is used instead.

Since

3.1
public static Core\Date
# createWithString( string $dateString )

Initialises a new instance from a date string.

Initialises a new instance from a date string.

Parameters

$dateString
Date string to parse and initialise new date object with.

Returns

Core\Date

Since

3.1
public static Core\Date
# createWithUnixTimestamp( $unixTimestamp )

Initialises a new instance from a UNIX timestamp.

Initialises a new instance from a UNIX timestamp.

Parameters

$unixTimestamp
timestamp to initialise new date object with.

Returns

Core\Date

Since

3.1
public string
# format( string $format )

Returns a string representing the stored UNIX timestamp in the requested format.

Returns a string representing the stored UNIX timestamp in the requested format.

Parameters

$format
Format string; equals the date() format.

Returns

string

String representation of the stored UNIX timestamp based on the provided format string.

Since

3.1
public string
# rfc1123( )

Returns the RFC1123 representation of the stored UNIX timestamp. A RFC 1123 formatted timestamp is the preferred Internet standard and must be used in HTTP/1.1 headers.

Returns the RFC1123 representation of the stored UNIX timestamp. A RFC 1123 formatted timestamp is the preferred Internet standard and must be used in HTTP/1.1 headers.

Returns

string
RFC 1123 representation string of the stored UNIX timestamp in GMT.

Remark

The timezone used to format the string is always GMT.

Since

3.1
public string
# rfc822( )

Returns the RFC 822 representation of the stored UNIX timestamp. A RFC 822 formatted timestamp is preferred as an Internet standard and commonly used in HTTP headers. Note, that HTTP/1.1 clients and servers must support this representation but must only generate RFC 1123 timestamps.

Returns the RFC 822 representation of the stored UNIX timestamp. A RFC 822 formatted timestamp is preferred as an Internet standard and commonly used in HTTP headers. Note, that HTTP/1.1 clients and servers must support this representation but must only generate RFC 1123 timestamps.

Returns

string
RFC 822 representation string of the stored UNIX timestamp in GMT.

Remark

The timezone used to format the string is always GMT. RFC822 has been replaced by RFC 1123.


Since

3.1
public string
# rfc850( )

Returns the RFC 850 representation of the stored UNIX timestamp. A RFC 850 formatted timestamp is now considered obsolete and has been commonly used in HTTP headers. Note, that HTTP/1.1 clients and servers must support this representation but must only generate RFC 1123 timestamps.

Returns the RFC 850 representation of the stored UNIX timestamp. A RFC 850 formatted timestamp is now considered obsolete and has been commonly used in HTTP headers. Note, that HTTP/1.1 clients and servers must support this representation but must only generate RFC 1123 timestamps.

Returns

string
RFC 850 representation string of the stored UNIX timestamp in GMT.

Remark

The timezone used to format the string is always GMT. RFC 850 has been replaced by RFC 1036.


Since

3.1

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

string Zero

RFC 1123 (HTTP/1.1-conform) date constant for the UNIX timestamp zero.

RFC 1123 (HTTP/1.1-conform) date constant for the UNIX timestamp zero.

Since

3.0
# 'Thu, 01 Jan 1970 00:00:00 GMT'
string ATOM

Since

3.1
# 'Y-m-d\TH:i:sP'
string COOKIE

Cookie timestamp format.

Cookie timestamp format.

Since

3.1
# 'l, d-M-y H:i:s T'
string ISO8601

ISO-8601 timestamp format.

ISO-8601 timestamp format.

Since

3.1
# 'c'
string RFC822

RFC 822 timestamp format (includes timezone).

RFC 822 timestamp format (includes timezone).

Since

3.1
# 'D, d M y H:i:s O'
string RFC850

RFC 850 timestamp format (includes timezone).

RFC 850 timestamp format (includes timezone).

Since

3.1
# 'l, d-M-y H:i:s T'
string RFC1036

RFC 1036 timestamp format (includes timezone).

RFC 1036 timestamp format (includes timezone).

Since

3.1
# 'D, d M y H:i:s O'
string RFC1123

RFC 1123 timestamp format (includes timezone) for HTTP/1.1.

RFC 1123 timestamp format (includes timezone) for HTTP/1.1.

Since

3.1
# 'D, d M Y H:i:s O'
string RFC2822

RFC 2822 timestamp format.

RFC 2822 timestamp format.

Since

3.1
# 'r'
string RFC3339

RFC 3339 timestamp format.

RFC 3339 timestamp format.

Since

3.1
# 'Y-m-d\TH:i:sP'
string RSS

Since

3.1
# 'D, d M Y H:i:s O'
string W3C

W3C timestamp format.

W3C timestamp format.

Since

3.1
# 'Y-m-d\TH:i:sP'

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected integer $_v_unixTimestamp

UNIX timestamp of date.

UNIX timestamp of date.

Since

3.0
#

Magic properties

public read-only string $rfc1123

See Core\Date::rfc1123().

public read-only string $rfc822

See Core\Date::rfc822().

public read-only string $rfc850

See Core\Date::rfc850().

public read-only integer $unixTimestamp

UNIX timestamp of date.

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.2 API documentation generated by ApiGen