Copied!

Simple Date class for JSON output

Cloneable Instantiable
Constants
public DateTimeInterface ::ATOM = 'Y-m-d\TH:i:sP'
public DateTimeInterface ::COOKIE = 'l, d-M-Y H:i:s T'
public DateTimeInterface ::ISO8601 = 'Y-m-d\TH:i:sO'
public DateTimeInterface ::RFC1036 = 'D, d M y H:i:s O'
public DateTimeInterface ::RFC1123 = 'D, d M Y H:i:s O'
public DateTimeInterface ::RFC2822 = 'D, d M Y H:i:s O'
public DateTimeInterface ::RFC3339 = 'Y-m-d\TH:i:sP'
public DateTimeInterface ::RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP'
public DateTimeInterface ::RFC7231 = 'D, d M Y H:i:s \G\M\T'
public DateTimeInterface ::RFC822 = 'D, d M y H:i:s O'
public DateTimeInterface ::RFC850 = 'l, d-M-y H:i:s T'
public DateTimeInterface ::RSS = 'D, d M Y H:i:s O'
public DateTimeInterface ::W3C = 'Y-m-d\TH:i:sP'
Methods
public DateTime :: __construct ( string $datetime = 'now' , ? DateTimeZone $timezone = NULL )
public static DateTime :: __set_state ( array $array )
public __toString () : string
public DateTime :: __wakeup ()
public DateTime :: add ( DateInterval $interval )
public static DateTime :: createFromFormat ( string $format , string $datetime , ? DateTimeZone $timezone = NULL )
public static DateTime :: createFromImmutable ( DateTimeImmutable $object )
public static DateTime :: createFromInterface ( DateTimeInterface $object ) : PHPFUI\ConstantContact\DateTime
public DateTime :: diff ( DateTimeInterface $targetObject , bool $absolute = false )
public DateTime :: format ( string $format )
public static DateTime :: getLastErrors ()
public DateTime :: getOffset ()
public DateTime :: getTimestamp ()
public DateTime :: getTimezone ()
public DateTime :: modify ( string $modifier )
public DateTime :: setDate ( int $year , int $month , int $day )
public DateTime :: setISODate ( int $year , int $week , int $dayOfWeek = 1 )
public DateTime :: setTime ( int $hour , int $minute , int $second = 0 , int $microsecond = 0 )
public DateTime :: setTimestamp ( int $timestamp )
public DateTime :: setTimezone ( DateTimeZone $timezone )
public DateTime :: sub ( DateInterval $interval )
Methods
public static DateTime :: __set_state ( array $array )
public static DateTime :: createFromFormat ( string $format , string $datetime , ? DateTimeZone $timezone = NULL )
public static DateTime :: createFromImmutable ( DateTimeImmutable $object )
public static DateTime :: createFromInterface ( DateTimeInterface $object ) : PHPFUI\ConstantContact\DateTime
public static DateTime :: getLastErrors ()
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration