ICanBoogie/HTTP master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher

Classes

  • CacheControl
  • ContentDisposition
  • ContentType
  • Date
  • Header
  • HeaderParameter

Class Date

A date time object that renders into a string formatted for HTTP header fields.

ICanBoogie\DateTime
Extended by ICanBoogie\HTTP\Headers\Date
Namespace: ICanBoogie\HTTP\Headers
See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
Located at Headers/Date.php

Methods summary

public static ICanBoogie\HTTP\Headers\Date|ICanBoogie\DateTime
# from( mixed $source, string|DateTimeZone|null $timezone = null )

Parameters

$source
$timezone

Returns

ICanBoogie\HTTP\Headers\Date|ICanBoogie\DateTime
public
# __construct( string|integer|DateTime $time = 'now', DateTimeZone|string $timezone = null )

Parameters

$time

If time is provided as a numeric value it is used as "@{$time}" and the time zone is set to UTC.

$timezone

A \DateTimeZone object representing the desired time zone. If the time zone is empty utc is used instead.

public
# __toString( )

Formats the instance according to the RFC 1123.

Formats the instance according to the RFC 1123.

Inheritdoc

ICanBoogie/HTTP master API documentation generated by ApiGen