ICanBoogie
  • Documentation
  • API Reference
  • HTTP 3.0.x
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
┗ 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 from( mixed $source, string|DateTimeZone|null $timezone = null ) : ICanBoogie\HTTP\Headers\Date|ICanBoogie\DateTime

Parameters

$source
$timezone

Returns

ICanBoogie\HTTP\Headers\Date|ICanBoogie\DateTime
public __construct( string|integer|DateTimeInterface $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( void )

Formats the instance according to the RFC 1123.

Formats the instance according to the RFC 1123.

Inheritdoc

HTTP 3.0.x – Check on GitHub – API documentation generated by ApiGen