Class Date
Provides methods useful in formatting dates and date timestamps.
Methods summary
| 
				 public 
				
				
				 | 
			#
			 __construct( array $formats = null, mixed $timezone_from = null, mixed $timezone_to = null )Constructs a new Date component using the given date formats in $formats. | 
| 
				 public 
				this
				
				 | 
			#
			 setTimezone( string $from = null, string $to = null )Set the current time zone to be used during date calculations | 
| 
				 public 
				this
				
				 | |
| 
				 public 
				string
				
				 | 
			#
			 cast( string $date, string $format = "date" )Format a date using one of the date formats provided to the constructor, or predefined in this class. | 
| 
				 public 
				string
				
				 | 
			#
			 dateRange( string $start, string $end, array $formats = null )Format two dates to represent a range between them. | 
| 
				 public 
				string
				
				 | |
| 
				 public 
				integer
				
				 | |
| 
				 public 
				array
				
				 | 
			#
			 getMonths( integer $start = 1, integer $end = 12, string $key_format = "m", string $value_format = "F" )Returns an array of months in key/value pairs | 
| 
				 public 
				array
				
				 | 
			#
			 getYears( integer $start, integer $end, string $key_format = "y", string $value_format = "Y" )Returns an array of keys in key/value pairs | 
| 
				 public 
				array
				
				 | 
Magic methods summary
Constants summary
| string | 
ATOM			 | "Y-m-d\TH:i:sP" | |
| string | 
COOKIE			 | "l, d-M-y H:i:s T" | |
| string | 
ISO8601			 | "Y-m-d\TH:i:sO" | |
| string | 
RFC822			 | "D, d M y H:i:s O" | |
| string | 
RFC850			 | "l, d-M-y H:i:s T" | |
| string | 
RFC1036			 | "D, d M y H:i:s O" | |
| string | 
RFC1123			 | "D, d M Y H:i:s O" | |
| string | 
RFC2822			 | "D, d M Y H:i:s O" | |
| string | 
RFC3339			 | "Y-m-d\TH:i:sP" | |
| string | 
RSS			 | "D, d M Y H:i:s O" | |
| string | 
W3C			 | "Y-m-d\TH:i:sP" |