1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect1 id="zend.date.constants">
4 <title>Constants for General Date Functions</title>
7 Whenever a <classname>Zend_Date</classname> method has a <varname>$parts</varname>
8 parameter, one of the constants below can be used as the argument for that parameter, in
9 order to select a specific part of a date or indicate the date format used or desired (e.g.
10 <acronym>RFC</acronym> 822).
13 <sect2 id="zend.date.constants.using">
14 <title>Using Constants</title>
17 For example, the constant <constant>Zend_Date::HOUR</constant> can be used in the ways
18 shown below. When working with days of the week, calendar dates, hours, minutes,
19 seconds, and any other date parts that are expressed differently when in different parts
20 of the world, the object's timezone will automatically be used to compute the correct
21 value, even though the internal timestamp is the same for the same moment in time,
22 regardless of the user's physical location in the world. Regardless of the units
23 involved, output must be expressed either as <acronym>GMT</acronym> or
24 <acronym>UTC</acronym> or localized to a locale. The example output below reflects
25 localization to Europe/GMT+1 hour (e.g. Germany, Austria, France).
28 <table id="zend.date.constants.using.table">
29 <title>Operations Involving Zend_Date::HOUR</title>
35 <entry>Description</entry>
36 <entry>Original date</entry>
43 <entry><methodname>get(Zend_Date::HOUR)</methodname></entry>
44 <entry>Output of the hour</entry>
45 <entry>2009-02-13T14:53:27+01:00</entry>
50 <entry><methodname>set(12, Zend_Date::HOUR)</methodname></entry>
51 <entry>Set new hour</entry>
52 <entry>2009-02-13T14:53:27+01:00</entry>
53 <entry>2009-02-13T12:53:27+01:00</entry>
57 <entry><methodname>add(12, Zend_Date::HOUR)</methodname></entry>
58 <entry>Add hours</entry>
59 <entry>2009-02-13T14:53:27+01:00</entry>
60 <entry>2009-02-14T02:53:27+01:00</entry>
64 <entry><methodname>sub(12, Zend_Date::HOUR)</methodname></entry>
65 <entry>Subtract hours</entry>
66 <entry>2009-02-13T14:53:27+01:00</entry>
67 <entry>2009-02-13T02:53:27+01:00</entry>
71 <entry><methodname>compare(12, Zend_Date::HOUR)</methodname></entry>
72 <entry>Compare hour, returns 0, 1 or -1</entry>
73 <entry>2009-02-13T14:53:27+01:00</entry>
74 <entry>1 (if object > argument)</entry>
78 <entry><methodname>copy(Zend_Date::HOUR)</methodname></entry>
79 <entry>Copies only the hour part</entry>
80 <entry>2009-02-13T14:53:27+01:00</entry>
81 <entry>1970-01-01T14:00:00+01:00</entry>
85 <entry><methodname>equals(14, Zend_Date::HOUR)</methodname></entry>
86 <entry>Compares the hour, returns <constant>TRUE</constant> or
87 <constant>FALSE</constant></entry> <entry>2009-02-13T14:53:27+01:00</entry>
88 <entry><constant>TRUE</constant></entry>
92 <entry><methodname>isEarlier(12, Zend_Date::HOUR)</methodname></entry>
93 <entry>Compares the hour, returns <constant>TRUE</constant> or
94 <constant>FALSE</constant></entry> <entry>2009-02-13T14:53:27+01:00</entry>
95 <entry><constant>TRUE</constant></entry>
99 <entry><methodname>isLater(12, Zend_Date::HOUR)</methodname></entry>
100 <entry>Compares the hour, returns <constant>TRUE</constant> or
101 <constant>FALSE</constant></entry> <entry>2009-02-13T14:53:27+01:00</entry>
102 <entry><constant>FALSE</constant></entry>
109 <sect2 id="zend.date.constants.list">
110 <title>List of All Constants</title>
113 Each part of a date or time has a unique constant in <classname>Zend_Date</classname>.
114 All constants supported by <classname>Zend_Date</classname> are listed below.
117 <table id="zend.date.constants.list.table-1">
118 <title>Day Constants</title>
123 <entry>Constant</entry>
124 <entry>Description</entry>
126 <entry>Result</entry>
132 <entry><constant>Zend_Date::DAY</constant></entry>
133 <entry>Day (as number, two digits)</entry>
134 <entry>2009-02-13T14:53:27+01:00</entry>
135 <entry><emphasis>13</emphasis></entry>
139 <entry><constant>Zend_Date::DAY_SHORT</constant></entry>
140 <entry>Day (as number, one or two digits)</entry>
141 <entry>2009-02-06T14:53:27+01:00</entry>
142 <entry><emphasis>6</emphasis></entry>
146 <entry><constant>Zend_Date::WEEKDAY</constant></entry>
147 <entry>Weekday (Name of the day, localized, complete)</entry>
148 <entry>2009-02-13T14:53:27+01:00</entry>
149 <entry><emphasis>Friday</emphasis></entry>
153 <entry><constant>Zend_Date::WEEKDAY_SHORT</constant></entry>
156 Weekday (Name of the day, localized, abbreviated, two to four chars)
159 <entry>2009-02-13T14:53:27+01:00</entry>
160 <entry><emphasis>Fri</emphasis> for Friday</entry>
164 <entry><constant>Zend_Date::WEEKDAY_NAME</constant></entry>
167 Weekday (Name of the day, localized, abbreviated, one or two chars)
170 <entry>2009-02-13T14:53:27+01:00</entry>
171 <entry><emphasis>Fr</emphasis> for Friday</entry>
175 <entry><constant>Zend_Date::WEEKDAY_NARROW</constant></entry>
178 Weekday (Name of the day, localized, abbreviated, one char)
181 <entry>2009-02-13T14:53:27+01:00</entry>
182 <entry><emphasis>F</emphasis> for Friday</entry>
186 <entry><constant>Zend_Date::WEEKDAY_DIGIT</constant></entry>
187 <entry>Weekday (0 = Sunday, 6 = Saturday)</entry>
188 <entry>2009-02-13T14:53:27+01:00</entry>
189 <entry><emphasis>5</emphasis> for Friday</entry>
193 <entry><constant>Zend_Date::WEEKDAY_8601</constant></entry>
196 Weekday according to <acronym>ISO</acronym> 8601 (1 = Monday, 7 =
200 <entry>2009-02-13T14:53:27+01:00</entry>
201 <entry><emphasis>5</emphasis> for Friday</entry>
205 <entry><constant>Zend_Date::DAY_OF_YEAR</constant></entry>
206 <entry>Day (as a number, one or two digits)</entry>
207 <entry>2009-02-13T14:53:27+01:00</entry>
208 <entry><emphasis>43</emphasis>
213 <entry><constant>Zend_Date::DAY_SUFFIX</constant></entry>
214 <entry>English addendum for the day (st, nd, rd, th)</entry>
215 <entry>2009-02-13T14:53:27+01:00</entry>
216 <entry><emphasis>th</emphasis></entry>
222 <table id="zend.date.constants.list.table-2">
223 <title>Week Constants</title>
228 <entry>Constant</entry>
229 <entry>Description</entry>
231 <entry>Result</entry>
237 <entry><constant>Zend_Date::WEEK</constant></entry>
238 <entry>Week (as number, 1-53)</entry>
239 <entry>2009-02-13T14:53:27+01:00</entry>
240 <entry><emphasis>8</emphasis></entry>
246 <table id="zend.date.constants.list.table-3">
247 <title>Month Constants</title>
252 <entry>Constant</entry>
253 <entry>Description</entry>
255 <entry>Result</entry>
261 <entry><constant>Zend_Date::MONTH_NAME</constant></entry>
262 <entry>Month (Name of the month, localized, complete)</entry>
263 <entry>2009-02-13T14:53:27+01:00</entry>
264 <entry><emphasis>February</emphasis></entry>
268 <entry><constant>Zend_Date::MONTH_NAME_SHORT</constant></entry>
271 Month (Name of the month, localized, abbreviated, two to four chars)
274 <entry>2009-02-13T14:53:27+01:00</entry>
275 <entry><emphasis>Feb</emphasis></entry>
279 <entry><constant>Zend_Date::MONTH_NAME_NARROW</constant></entry>
282 Month (Name of the month, localized, abbreviated, one or two chars)
285 <entry>2009-02-13T14:53:27+01:00</entry>
286 <entry><emphasis>F</emphasis></entry>
290 <entry><constant>Zend_Date::MONTH</constant></entry>
291 <entry>Month (Number of the month, two digits)</entry>
292 <entry>2009-02-13T14:53:27+01:00</entry>
293 <entry><emphasis>02</emphasis></entry>
297 <entry><constant>Zend_Date::MONTH_SHORT</constant></entry>
298 <entry>Month (Number of the month, one or two digits)</entry>
299 <entry>2009-02-13T14:53:27+01:00</entry>
300 <entry><emphasis>2</emphasis></entry>
304 <entry><constant>Zend_Date::MONTH_DAYS</constant></entry>
305 <entry>Number of days for this month (number)</entry>
306 <entry>2009-02-13T14:53:27+01:00</entry>
307 <entry><emphasis>28</emphasis></entry>
313 <table id="zend.date.constants.list.table-4">
314 <title>Year Constants</title>
319 <entry>Constant</entry>
320 <entry>Description</entry>
322 <entry>Result</entry>
328 <entry><constant>Zend_Date::YEAR</constant></entry>
329 <entry>Year (number)</entry>
330 <entry>2009-02-13T14:53:27+01:00</entry>
331 <entry><emphasis>2009</emphasis></entry>
335 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
336 <entry>Year according to <acronym>ISO</acronym> 8601 (number)</entry>
337 <entry>2009-02-13T14:53:27+01:00</entry>
338 <entry><emphasis>2009</emphasis></entry>
342 <entry><constant>Zend_Date::YEAR_SHORT</constant></entry>
343 <entry>Year (number, two digits)</entry>
344 <entry>2009-02-13T14:53:27+01:00</entry>
345 <entry><emphasis>09</emphasis></entry>
349 <entry><constant>Zend_Date::YEAR_SHORT_8601</constant></entry>
352 Year according to <acronym>ISO</acronym> 8601 (number, two digits)
355 <entry>2009-02-13T14:53:27+01:00</entry>
356 <entry><emphasis>09</emphasis></entry>
360 <entry><constant>Zend_Date::LEAPYEAR</constant></entry>
363 Is the year a leap year? (<constant>TRUE</constant> or
364 <constant>FALSE</constant>)
367 <entry>2009-02-13T14:53:27+01:00</entry>
368 <entry><constant>FALSE</constant></entry>
374 <table id="zend.date.constants.list.table-5">
375 <title>Time Constants</title>
380 <entry>Constant</entry>
381 <entry>Description</entry>
383 <entry>Result</entry>
389 <entry><constant>Zend_Date::HOUR</constant></entry>
390 <entry>Hour (00-23, two digits)</entry>
391 <entry>2009-02-13T14:53:27+01:00</entry>
392 <entry><emphasis>14</emphasis></entry>
396 <entry><constant>Zend_Date::HOUR_SHORT</constant></entry>
397 <entry>Hour (0-23, one or two digits)</entry>
398 <entry>2009-02-13T14:53:27+01:00</entry>
399 <entry><emphasis>14</emphasis></entry>
403 <entry><constant>Zend_Date::HOUR_SHORT_AM</constant></entry>
404 <entry>Hour (1-12, one or two digits)</entry>
405 <entry>2009-02-13T14:53:27+01:00</entry>
406 <entry><emphasis>2</emphasis></entry>
410 <entry><constant>Zend_Date::HOUR_AM</constant></entry>
411 <entry>Hour (01-12, two digits)</entry>
412 <entry>2009-02-13T14:53:27+01:00</entry>
413 <entry><emphasis>02</emphasis></entry>
417 <entry><constant>Zend_Date::MINUTE</constant></entry>
418 <entry>Minute (00-59, two digits)</entry>
419 <entry>2009-02-13T14:53:27+01:00</entry>
420 <entry><emphasis>53</emphasis></entry>
424 <entry><constant>Zend_Date::MINUTE_SHORT</constant></entry>
425 <entry>Minute (0-59, one or two digits)</entry>
426 <entry>2009-02-13T14:03:27+01:00</entry>
427 <entry><emphasis>3</emphasis></entry>
431 <entry><constant>Zend_Date::SECOND</constant></entry>
432 <entry>Second (00-59, two digits)</entry>
433 <entry>2009-02-13T14:53:27+01:00</entry>
434 <entry><emphasis>27</emphasis></entry>
438 <entry><constant>Zend_Date::SECOND_SHORT</constant></entry>
439 <entry>Second (0-59, one or two digits)</entry>
440 <entry>2009-02-13T14:53:07+01:00</entry>
441 <entry><emphasis>7</emphasis></entry>
445 <entry><constant>Zend_Date::MILLISECOND</constant></entry>
446 <entry>Millisecond (theoretically infinite)</entry>
447 <entry><command>2009-02-06T14:53:27.20546</command></entry>
448 <entry><emphasis>20546</emphasis></entry>
452 <entry><constant>Zend_Date::MERIDIEM</constant></entry>
453 <entry>Time of day (forenoon or afternoon)</entry>
454 <entry>2009-02-13T14:53:27+01:00</entry>
455 <entry><emphasis>afternoon</emphasis></entry>
459 <entry><constant>Zend_Date::SWATCH</constant></entry>
460 <entry>Swatch Internet Time</entry>
461 <entry>2009-02-13T14:53:27+01:00</entry>
462 <entry><emphasis>620</emphasis></entry>
468 <table id="zend.date.constants.list.table-6">
469 <title>Timezone Constants</title>
474 <entry>Constant</entry>
475 <entry>Description</entry>
477 <entry>Result</entry>
483 <entry><constant>Zend_Date::TIMEZONE</constant></entry>
484 <entry>Name der time zone (string, abbreviated)</entry>
485 <entry>2009-02-13T14:53:27+01:00</entry>
486 <entry><emphasis><acronym>CET</acronym></emphasis></entry>
490 <entry><constant>Zend_Date::TIMEZONE_NAME</constant></entry>
491 <entry>Name of the time zone (string, complete)</entry>
492 <entry>2009-02-13T14:53:27+01:00</entry>
493 <entry><emphasis><command>Europe/Paris</command></emphasis></entry>
497 <entry><constant>Zend_Date::TIMEZONE_SECS</constant></entry>
500 Difference of the time zone to <acronym>GMT</acronym> in seconds
504 <entry>2009-02-13T14:53:27+01:00</entry>
505 <entry><emphasis>3600</emphasis> (seconds to <acronym>GMT</acronym>)</entry>
509 <entry><constant>Zend_Date::GMT_DIFF</constant></entry>
510 <entry>Difference to <acronym>GMT</acronym> in seconds (string)</entry>
511 <entry>2009-02-13T14:53:27+01:00</entry>
512 <entry><emphasis>+0100</emphasis></entry>
516 <entry><constant>Zend_Date::GMT_DIFF_SEP</constant></entry>
519 Difference to <acronym>GMT</acronym> in seconds (string, separated)
522 <entry>2009-02-13T14:53:27+01:00</entry>
523 <entry><emphasis>+01:00</emphasis></entry>
527 <entry><constant>Zend_Date::DAYLIGHT</constant></entry>
530 Summer time or Winter time? (<constant>TRUE</constant> or
531 <constant>FALSE</constant>)
534 <entry>2009-02-13T14:53:27+01:00</entry>
535 <entry><constant>FALSE</constant></entry>
541 <table id="zend.date.constants.list.table-7">
542 <title>Date Format Constants (formats include timezone)</title>
547 <entry>Constant</entry>
548 <entry>Description</entry>
550 <entry>Result</entry>
556 <entry><constant>Zend_Date::ISO_8601</constant></entry>
559 Date according to <acronym>ISO</acronym> 8601 (string, complete)
562 <entry>2009-02-13T14:53:27+01:00</entry>
563 <entry><emphasis>2009-02-13T14:53:27+01:00</emphasis></entry>
567 <entry><constant>Zend_Date::RFC_2822</constant></entry>
568 <entry>Date according to <acronym>RFC</acronym> 2822 (string)</entry>
569 <entry>2009-02-13T14:53:27+01:00</entry>
570 <entry><emphasis>Fri, 13 Feb 2009 14:53:27 +0100</emphasis></entry>
574 <entry><constant>Zend_Date::TIMESTAMP</constant></entry>
577 <ulink url="http://en.wikipedia.org/wiki/Unix_Time">Unix time</ulink>
578 (seconds since 1.1.1970, mixed)
581 <entry>2009-02-13T14:53:27+01:00</entry>
582 <entry><emphasis>1234533207</emphasis></entry>
586 <entry><constant>Zend_Date::ATOM</constant></entry>
587 <entry>Date according to <acronym>ATOM</acronym> (string)</entry>
588 <entry>2009-02-13T14:53:27+01:00</entry>
589 <entry><emphasis>2009-02-13T14:53:27+01:00</emphasis></entry>
593 <entry><constant>Zend_Date::COOKIE</constant></entry>
594 <entry>Date for Cookies (string, for Cookies)</entry>
595 <entry>2009-02-13T14:53:27+01:00</entry>
598 <emphasis><command>Friday, 13-Feb-09 14:53:27
599 Europe/Paris</command></emphasis>
604 <entry><constant>Zend_Date::RFC_822</constant></entry>
605 <entry>Date according to <acronym>RFC</acronym> 822 (string)</entry>
606 <entry>2009-02-13T14:53:27+01:00</entry>
607 <entry><emphasis>Fri, 13 Feb 09 14:53:27 +0100</emphasis></entry>
611 <entry><constant>Zend_Date::RFC_850</constant></entry>
612 <entry>Date according to <acronym>RFC</acronym> 850 (string)</entry>
613 <entry>2009-02-13T14:53:27+01:00</entry>
616 <emphasis><command>Friday, 13-Feb-09 14:53:27
617 Europe/Paris</command></emphasis>
622 <entry><constant>Zend_Date::RFC_1036</constant></entry>
623 <entry>Date according to <acronym>RFC</acronym> 1036 (string)</entry>
624 <entry>2009-02-13T14:53:27+01:00</entry>
625 <entry><emphasis>Fri, 13 Feb 09 14:53:27 +0100</emphasis></entry>
629 <entry><constant>Zend_Date::RFC_1123</constant></entry>
630 <entry>Date according to <acronym>RFC</acronym> 1123 (string)</entry>
631 <entry>2009-02-13T14:53:27+01:00</entry>
632 <entry><emphasis>Fri, 13 Feb 2009 14:53:27 +0100</emphasis></entry>
636 <entry><constant>Zend_Date::RSS</constant></entry>
637 <entry>Date for <acronym>RSS</acronym> Feeds (string)</entry>
638 <entry>2009-02-13T14:53:27+01:00</entry>
639 <entry><emphasis>Fri, 13 Feb 2009 14:53:27 +0100</emphasis></entry>
643 <entry><constant>Zend_Date::W3C</constant></entry>
646 Date for <acronym>HTML</acronym> or <acronym>HTTP</acronym> according
647 to <acronym>W3C</acronym> (string)
650 <entry>2009-02-13T14:53:27+01:00</entry>
651 <entry><emphasis>2009-02-13T14:53:27+01:00</emphasis></entry>
658 Especially note <constant>Zend_Date::DATES</constant>, since this format specifier has
659 a unique property within <classname>Zend_Date</classname> as an
660 <emphasis>input</emphasis> format specifier. When used as an input format for
661 <varname>$part</varname>, this constant provides the most flexible acceptance of a
662 variety of similar date formats. Heuristics are used to automatically extract dates from
663 an input string and then "fix" simple errors in dates (if any), such as swapping of
664 years, months, and days, when possible.
667 <table id="zend.date.constants.list.table-8">
668 <title>Date and Time Formats (format varies by locale)</title>
673 <entry>Constant</entry>
674 <entry>Description</entry>
676 <entry>Result</entry>
682 <entry><constant>Zend_Date::ERA</constant></entry>
683 <entry>Epoch (string, localized, abbreviated)</entry>
684 <entry>2009-02-13T14:53:27+01:00</entry>
685 <entry><emphasis>AD</emphasis> (anno Domini)</entry>
689 <entry><constant>Zend_Date::ERA_NAME</constant></entry>
690 <entry>Epoch (string, localized, complete)</entry>
691 <entry>2009-02-13T14:53:27+01:00</entry>
692 <entry><emphasis>anno domini</emphasis> (anno Domini)</entry>
696 <entry><constant>Zend_Date::DATES</constant></entry>
697 <entry>Standard date (string, localized, default value).</entry>
698 <entry>2009-02-13T14:53:27+01:00</entry>
699 <entry><emphasis>13.02.2009</emphasis></entry>
703 <entry><constant>Zend_Date::DATE_FULL</constant></entry>
704 <entry>Complete date (string, localized, complete)</entry>
705 <entry>2009-02-13T14:53:27+01:00</entry>
706 <entry><emphasis>Friday, 13. February 2009</emphasis></entry>
710 <entry><constant>Zend_Date::DATE_LONG</constant></entry>
711 <entry>Long date (string, localized, long)</entry>
712 <entry>2009-02-13T14:53:27+01:00</entry>
713 <entry><emphasis>13. February 2009</emphasis></entry>
717 <entry><constant>Zend_Date::DATE_MEDIUM</constant></entry>
718 <entry>Normal date (string, localized, normal)</entry>
719 <entry>2009-02-13T14:53:27+01:00</entry>
720 <entry><emphasis>13.02.2009</emphasis></entry>
724 <entry><constant>Zend_Date::DATE_SHORT</constant></entry>
725 <entry>Abbreviated Date (string, localized, abbreviated)</entry>
726 <entry>2009-02-13T14:53:27+01:00</entry>
727 <entry><emphasis>13.02.09</emphasis></entry>
731 <entry><constant>Zend_Date::TIMES</constant></entry>
732 <entry>Standard time (string, localized, default value)</entry>
733 <entry>2009-02-13T14:53:27+01:00</entry>
734 <entry><emphasis>14:53:27</emphasis></entry>
738 <entry><constant>Zend_Date::TIME_FULL</constant></entry>
739 <entry>Complete time (string, localized, complete)</entry>
740 <entry>2009-02-13T14:53:27+01:00</entry>
741 <entry><emphasis><command>14:53 Uhr CET</command></emphasis></entry>
745 <entry><constant>Zend_Date::TIME_LONG</constant></entry>
746 <entry>Long time (string, localized, Long)</entry>
747 <entry>2009-02-13T14:53:27+01:00</entry>
748 <entry><emphasis><command>14:53:27 CET</command></emphasis></entry>
752 <entry><constant>Zend_Date::TIME_MEDIUM</constant></entry>
753 <entry>Normal time (string, localized, normal)</entry>
754 <entry>2009-02-13T14:53:27+01:00</entry>
755 <entry><emphasis>14:53:27</emphasis></entry>
759 <entry><constant>Zend_Date::TIME_SHORT</constant></entry>
760 <entry>Abbreviated time (string, localized, abbreviated)</entry>
761 <entry>2009-02-13T14:53:27+01:00</entry>
762 <entry><emphasis>14:53</emphasis></entry>
766 <entry><constant>Zend_Date::DATETIME</constant></entry>
767 <entry>Standard date with time (string, localized, default value).</entry>
768 <entry>2009-02-13T14:53:27+01:00</entry>
769 <entry><emphasis>13.02.2009 14:53:27</emphasis></entry>
773 <entry><constant>Zend_Date::DATETIME_FULL</constant></entry>
774 <entry>Complete date with time (string, localized, complete)</entry>
775 <entry>2009-02-13T14:53:27+01:00</entry>
778 <emphasis><command>Friday, 13. February 2009 14:53 Uhr
779 CET</command></emphasis>
784 <entry><constant>Zend_Date::DATETIME_LONG</constant></entry>
785 <entry>Long date with time (string, localized, long)</entry>
786 <entry>2009-02-13T14:53:27+01:00</entry>
789 <emphasis><command>13. February 2009 14:53:27 CET</command></emphasis>
794 <entry><constant>Zend_Date::DATETIME_MEDIUM</constant></entry>
795 <entry>Normal date with time (string, localized, normal)</entry>
796 <entry>2009-02-13T14:53:27+01:00</entry>
797 <entry><emphasis>13.02.2009 14:53:27</emphasis></entry>
801 <entry><constant>Zend_Date::DATETIME_SHORT</constant></entry>
802 <entry>Abbreviated date with time (string, localized, abbreviated)</entry>
803 <entry>2009-02-13T14:53:27+01:00</entry>
804 <entry><emphasis>13.02.09 14:53</emphasis></entry>
811 <sect2 id="zend.date.constants.selfdefinedformats">
812 <title>Self-Defined OUTPUT Formats with ISO</title>
815 If you need a date format not shown above, then use a self-defined format composed from
816 the <acronym>ISO</acronym> format token specifiers below. The following examples
817 illustrate the usage of constants from the table below to create self-defined
818 <acronym>ISO</acronym> formats. The format length is unlimited. Also, multiple usage of
819 format constants is allowed.
823 The accepted format specifiers can be changed from <acronym>ISO</acronym> Format to
824 <acronym>PHP</acronym>'s date format if you are more comfortable with it. However, not
825 all formats defined in the <acronym>ISO</acronym> norm are supported with
826 <acronym>PHP</acronym>'s date format specifiers. Use the
827 <methodname>Zend_Date::setOptions(array('format_type' => 'php'))</methodname> method to
828 switch <classname>Zend_Date</classname> methods from supporting <acronym>ISO</acronym>
829 format specifiers to <acronym>PHP</acronym> <methodname>date()</methodname> type
830 specifiers (see <link linkend="zend.date.constants.phpformats">Self-Defined OUTPUT
831 Formats Using PHP's date() Format Specifiers</link> below).
834 <example id="zend.date.constants.selfdefinedformats.example-1">
835 <title>Self-Defined ISO Formats</title>
837 <programlisting language="php"><![CDATA[
838 $locale = new Zend_Locale('de_AT');
839 $date = new Zend_Date(1234567890, false, $locale);
840 print $date->toString("'Era:GGGG='GGGG, ' Date:yy.MMMM.dd'yy.MMMM.dd");
844 <table id="zend.date.constants.selfdefinedformats.table">
845 <title>Constants for ISO 8601 Date Output</title>
850 <entry>Constant</entry>
851 <entry>Description</entry>
852 <entry>Corresponds best to</entry>
853 <entry>Result</entry>
860 <entry>Epoch, localized, abbreviated</entry>
861 <entry><constant>Zend_Date::ERA</constant></entry>
862 <entry><emphasis>AD</emphasis></entry>
867 <entry>Epoch, localized, abbreviated</entry>
868 <entry><constant>Zend_Date::ERA</constant></entry>
869 <entry><emphasis>AD</emphasis></entry>
873 <entry><constant>GGG</constant></entry>
874 <entry>Epoch, localized, abbreviated</entry>
875 <entry><constant>Zend_Date::ERA</constant></entry>
876 <entry><emphasis>AD</emphasis></entry>
880 <entry><constant>GGGG</constant></entry>
881 <entry>Epoch, localized, complete</entry>
882 <entry><constant>Zend_Date::ERA_NAME</constant></entry>
883 <entry><emphasis>anno domini</emphasis></entry>
887 <entry><constant>GGGGG</constant></entry>
888 <entry>Epoch, localized, abbreviated</entry>
889 <entry><constant>Zend_Date::ERA</constant></entry>
890 <entry><emphasis>a</emphasis></entry>
895 <entry>Year, at least one digit</entry>
896 <entry><constant>Zend_Date::YEAR</constant></entry>
897 <entry><emphasis>9</emphasis></entry>
902 <entry>Year, at least two digit</entry>
903 <entry><constant>Zend_Date::YEAR_SHORT</constant></entry>
904 <entry><emphasis>09</emphasis></entry>
909 <entry>Year, at least three digit</entry>
910 <entry><constant>Zend_Date::YEAR</constant></entry>
911 <entry><emphasis>2009</emphasis></entry>
916 <entry>Year, at least four digit</entry>
917 <entry><constant>Zend_Date::YEAR</constant></entry>
918 <entry><emphasis>2009</emphasis></entry>
923 <entry>Year, at least five digit</entry>
924 <entry><constant>Zend_Date::YEAR</constant></entry>
925 <entry><emphasis>02009</emphasis></entry>
932 Year according to <acronym>ISO</acronym> 8601, at least one digit
935 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
936 <entry><emphasis>9</emphasis></entry>
943 Year according to <acronym>ISO</acronym> 8601, at least two digit
946 <entry><constant>Zend_Date::YEAR_SHORT_8601</constant></entry>
947 <entry><emphasis>09</emphasis></entry>
951 <entry><constant>YYY</constant></entry>
954 Year according to <acronym>ISO</acronym> 8601, at least three digit
957 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
958 <entry><emphasis>2009</emphasis></entry>
962 <entry><constant>YYYY</constant></entry>
965 Year according to <acronym>ISO</acronym> 8601, at least four digit
968 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
969 <entry><emphasis>2009</emphasis></entry>
973 <entry><constant>YYYYY</constant></entry>
976 Year according to <acronym>ISO</acronym> 8601, at least five digit
979 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
980 <entry><emphasis>02009</emphasis></entry>
985 <entry>Month, one or two digit</entry>
986 <entry><constant>Zend_Date::MONTH_SHORT</constant></entry>
987 <entry><emphasis>2</emphasis></entry>
992 <entry>Month, two digit</entry>
993 <entry><constant>Zend_Date::MONTH</constant></entry>
994 <entry><emphasis>02</emphasis></entry>
998 <entry><constant>MMM</constant></entry>
999 <entry>Month, localized, abbreviated</entry>
1000 <entry><constant>Zend_Date::MONTH_NAME_SHORT</constant></entry>
1001 <entry><emphasis>Feb</emphasis></entry>
1005 <entry><constant>MMMM</constant></entry>
1006 <entry>Month, localized, complete</entry>
1007 <entry><constant>Zend_Date::MONTH_NAME</constant></entry>
1008 <entry><emphasis>February</emphasis></entry>
1012 <entry><constant>MMMMM</constant></entry>
1013 <entry>Month, localized, abbreviated, one digit</entry>
1014 <entry><constant>Zend_Date::MONTH_NAME_NARROW</constant></entry>
1015 <entry><emphasis>F</emphasis></entry>
1020 <entry>Week, one or two digit</entry>
1021 <entry><constant>Zend_Date::WEEK</constant></entry>
1022 <entry><emphasis>5</emphasis></entry>
1027 <entry>Week, two digit</entry>
1028 <entry><constant>Zend_Date::WEEK</constant></entry>
1029 <entry><emphasis>05</emphasis></entry>
1034 <entry>Day of the month, one or two digit</entry>
1035 <entry><constant>Zend_Date::DAY_SHORT</constant></entry>
1036 <entry><emphasis>9</emphasis></entry>
1041 <entry>Day of the month, two digit</entry>
1042 <entry><constant>Zend_Date::DAY</constant></entry>
1043 <entry><emphasis>09</emphasis></entry>
1048 <entry>Day of the year, one, two or three digit</entry>
1049 <entry><constant>Zend_Date::DAY_OF_YEAR</constant></entry>
1050 <entry><emphasis>7</emphasis></entry>
1055 <entry>Day of the year, two or three digit</entry>
1056 <entry><constant>Zend_Date::DAY_OF_YEAR</constant></entry>
1057 <entry><emphasis>07</emphasis></entry>
1061 <entry><constant>DDD</constant></entry>
1062 <entry>Day of the year, three digit</entry>
1063 <entry><constant>Zend_Date::DAY_OF_YEAR</constant></entry>
1064 <entry><emphasis>007</emphasis></entry>
1069 <entry>Day of the week, localized, abbreviated, one char</entry>
1070 <entry><constant>Zend_Date::WEEKDAY_NARROW</constant></entry>
1071 <entry><emphasis>M</emphasis></entry>
1076 <entry>Day of the week, localized, abbreviated, two or more chars</entry>
1077 <entry><constant>Zend_Date::WEEKDAY_NAME</constant></entry>
1078 <entry><emphasis>Mo</emphasis></entry>
1082 <entry><constant>EEE</constant></entry>
1083 <entry>Day of the week, localized, abbreviated, three chars</entry>
1084 <entry><constant>Zend_Date::WEEKDAY_SHORT</constant></entry>
1085 <entry><emphasis>Mon</emphasis></entry>
1089 <entry><constant>EEEE</constant></entry>
1090 <entry>Day of the week, localized, complete</entry>
1091 <entry><constant>Zend_Date::WEEKDAY</constant></entry>
1092 <entry><emphasis>Monday</emphasis></entry>
1096 <entry><constant>EEEEE</constant></entry>
1097 <entry>Day of the week, localized, abbreviated, one digit</entry>
1098 <entry><constant>Zend_Date::WEEKDAY_NARROW</constant></entry>
1099 <entry><emphasis>M</emphasis></entry>
1104 <entry>Number of the day, one digit</entry>
1105 <entry><constant>Zend_Date::WEEKDAY_DIGIT</constant></entry>
1106 <entry><emphasis>4</emphasis></entry>
1111 <entry>Number of the day, two digit</entry>
1112 <entry><constant>Zend_Date::WEEKDAY_NARROW</constant></entry>
1113 <entry><emphasis>04</emphasis></entry>
1118 <entry>Time of day, localized</entry>
1119 <entry><constant>Zend_Date::MERIDIEM</constant></entry>
1120 <entry><emphasis>vorm.</emphasis></entry>
1125 <entry>Hour, (1-12), one or two digit</entry>
1126 <entry><constant>Zend_Date::HOUR_SHORT_AM</constant></entry>
1127 <entry><emphasis>2</emphasis></entry>
1132 <entry>Hour, (01-12), two digit</entry>
1133 <entry><constant>Zend_Date::HOUR_AM</constant></entry>
1134 <entry><emphasis>02</emphasis></entry>
1139 <entry>Hour, (0-23), one or two digit</entry>
1140 <entry><constant>Zend_Date::HOUR_SHORT</constant></entry>
1141 <entry><emphasis>2</emphasis></entry>
1146 <entry>Hour, (00-23), two digit</entry>
1147 <entry><constant>Zend_Date::HOUR</constant></entry>
1148 <entry><emphasis>02</emphasis></entry>
1153 <entry>Minute, (0-59), one or two digit</entry>
1154 <entry><constant>Zend_Date::MINUTE_SHORT</constant></entry>
1155 <entry><emphasis>2</emphasis></entry>
1160 <entry>Minute, (00-59), two digit</entry>
1161 <entry><constant>Zend_Date::MINUTE</constant></entry>
1162 <entry><emphasis>02</emphasis></entry>
1167 <entry>Second, (0-59), one or two digit</entry>
1168 <entry><constant>Zend_Date::SECOND_SHORT</constant></entry>
1169 <entry><emphasis>2</emphasis></entry>
1174 <entry>Second, (00-59), two digit</entry>
1175 <entry><constant>Zend_Date::SECOND</constant></entry>
1176 <entry><emphasis>02</emphasis></entry>
1181 <entry>Millisecond</entry>
1182 <entry><constant>Zend_Date::MILLISECOND</constant></entry>
1183 <entry><emphasis>20536</emphasis></entry>
1188 <entry>Time zone, localized, abbreviated</entry>
1189 <entry><constant>Zend_Date::TIMEZONE</constant></entry>
1190 <entry><emphasis><constant>CET</constant></emphasis></entry>
1195 <entry>Time zone, localized, abbreviated</entry>
1196 <entry><constant>Zend_Date::TIMEZONE</constant></entry>
1197 <entry><emphasis><constant>CET</constant></emphasis></entry>
1202 <entry>Time zone, localized, abbreviated</entry>
1203 <entry><constant>Zend_Date::TIMEZONE</constant></entry>
1204 <entry><emphasis><constant>CET</constant></emphasis></entry>
1209 <entry>Time zone, localized, complete</entry>
1210 <entry><constant>Zend_Date::TIMEZONE_NAME</constant></entry>
1211 <entry><emphasis><command>Europe/Paris</command></emphasis></entry>
1216 <entry>Difference of time zone</entry>
1217 <entry><constant>Zend_Date::GMT_DIFF</constant></entry>
1218 <entry><emphasis>+0100</emphasis></entry>
1223 <entry>Difference of time zone</entry>
1224 <entry><constant>Zend_Date::GMT_DIFF</constant></entry>
1225 <entry><emphasis>+0100</emphasis></entry>
1229 <entry><constant>ZZZ</constant></entry>
1230 <entry>Difference of time zone</entry>
1231 <entry><constant>Zend_Date::GMT_DIFF</constant></entry>
1232 <entry><emphasis>+0100</emphasis></entry>
1236 <entry><constant>ZZZZ</constant></entry>
1237 <entry>Difference of time zone, separated</entry>
1238 <entry><constant>Zend_Date::GMT_DIFF_SEP</constant></entry>
1239 <entry><emphasis>+01:00</emphasis></entry>
1244 <entry>Milliseconds from the actual day</entry>
1245 <entry><constant>Zend_Date::MILLISECOND</constant></entry>
1246 <entry><emphasis>20563</emphasis></entry>
1254 Note that the default <acronym>ISO</acronym> format differs from
1255 <acronym>PHP</acronym>'s format which can be irritating if you have not used in
1256 previous. Especially the format specifiers for <emphasis>Year and Minute</emphasis>
1257 are often not used in the intended way.
1261 For <emphasis>year</emphasis> there are two specifiers available
1262 which are often mistaken. The <emphasis>Y</emphasis> specifier
1263 for the <acronym>ISO</acronym> year and the <emphasis>y</emphasis> specifier for the
1264 real year. The difference is small but significant.
1265 <emphasis>Y</emphasis> calculates the <acronym>ISO</acronym> year, which is often
1266 used for calendar formats. See for example the 31. December 2007. The real year is
1267 2007, but it is the first day of the first week in the week 1 of the year 2008.
1268 So, if you are using '<command>dd.MM.yyyy</command>' you will get
1269 '<command>31.December.2007</command>' but if you use '<command>dd.MM.YYYY</command>'
1270 you will get '<command>31.December.2008</command>'. As you see this is no bug but a
1271 expected behaviour depending on the used specifiers.
1275 For <emphasis>minute</emphasis> the difference is not so big. <acronym>ISO</acronym>
1276 uses the specifier <emphasis>m</emphasis> for the minute, unlike
1277 <acronym>PHP</acronym> which uses <emphasis>i</emphasis>. So if you are getting no
1278 minute in your format check if you have used the right specifier.
1283 <sect2 id="zend.date.constants.phpformats">
1284 <title>Self-Defined OUTPUT Formats Using PHP's date() Format Specifiers</title>
1287 If you are more comfortable with <acronym>PHP</acronym>'s date format specifier than
1288 with <acronym>ISO</acronym> format specifiers, then you can use the
1289 <methodname>Zend_Date::setOptions(array('format_type' => 'php'))</methodname> method to
1290 switch <classname>Zend_Date</classname> methods from supporting <acronym>ISO</acronym>
1291 format specifiers to <acronym>PHP</acronym> <methodname>date()</methodname> type
1292 specifiers. Afterwards, all format parameters must be given with <ulink
1293 url="http://php.net/date">PHP's <methodname>date()</methodname> format
1294 specifiers</ulink>. The <acronym>PHP</acronym> date format lacks some of the formats
1295 supported by the <acronym>ISO</acronym> Format, and vice-versa. If you are not already
1296 comfortable with it, then use the standard <acronym>ISO</acronym> format instead. Also,
1297 if you have legacy code using <acronym>PHP</acronym>'s date format, then either manually
1298 convert it to the <acronym>ISO</acronym> format using <link
1299 linkend="zend.locale.date.normalize">Zend_Locale_Format::convertPhpToIsoFormat()</link>,
1300 or use <methodname>setOptions()</methodname>. The following examples illustrate the
1301 usage of constants from the table below to create self-defined formats.
1304 <example id="zend.date.constants.phpformats.example-1">
1305 <title>Self-Defined Formats with PHP Specifier</title>
1307 <programlisting language="php"><![CDATA[
1308 $locale = new Zend_Locale('de_AT');
1309 Zend_Date::setOptions(array('format_type' => 'php'));
1310 $date = new Zend_Date(1234567890, false, $locale);
1312 // outputs something like 'February 16, 2007, 3:36 am'
1313 print $date->toString('F j, Y, g:i a');
1315 print $date->toString("'Format:D M j G:i:s T Y='D M j G:i:s T Y");
1316 ]]></programlisting>
1320 <title>PHP Date format and using constants</title>
1323 It is important to note that <classname>Zend_Date</classname>'s constants are
1324 using the <acronym>ISO</acronym> notation. This means, that when you set
1325 <classname>Zend_Date</classname> to use the <acronym>PHP</acronym> notation,
1326 you should not use <classname>Zend_Date</classname>'s constants, but define the
1327 wished format manually. If you don't follow this recommendation, you can get
1333 The following table shows the list of <acronym>PHP</acronym> date format specifiers with
1334 their equivalent <classname>Zend_Date</classname> constants and
1335 <acronym>CLDR</acronym> and <acronym>ISO</acronym> equivalent format specifiers. In most
1336 cases, when the <acronym>CLDR</acronym> and <acronym>ISO</acronym> format does not have
1337 an equivalent format specifier, the <acronym>PHP</acronym> format specifier is not
1338 altered by <methodname>Zend_Locale_Format::convertPhpToIsoFormat()</methodname>, and the
1339 <classname>Zend_Date</classname> methods then recognize these "peculiar"
1340 <acronym>PHP</acronym> format specifiers, even when in the default
1341 "<acronym>ISO</acronym>" format mode.
1344 <table id="zend.date.constants.phpformats.table">
1345 <title>Constants for PHP Date Output</title>
1350 <entry>Constant</entry>
1351 <entry>Description</entry>
1352 <entry>Corresponds best to</entry>
1353 <entry>closest <acronym>CLDR</acronym> equivalent</entry>
1354 <entry>Result</entry>
1361 <entry>Day of the month, two digit</entry>
1362 <entry><constant>Zend_Date::DAY</constant></entry>
1364 <entry><emphasis>09</emphasis></entry>
1369 <entry>Day of the week, localized, abbreviated, three digit</entry>
1370 <entry><constant>Zend_Date::WEEKDAY_SHORT</constant></entry>
1371 <entry><constant>EEE</constant></entry>
1372 <entry><emphasis>Mon</emphasis></entry>
1377 <entry>Day of the month, one or two digit</entry>
1378 <entry><constant>Zend_Date::DAY_SHORT</constant></entry>
1380 <entry><emphasis>9</emphasis></entry>
1384 <entry>l (lowercase L)</entry>
1385 <entry>Day of the week, localized, complete</entry>
1386 <entry><constant>Zend_Date::WEEKDAY</constant></entry>
1387 <entry><constant>EEEE</constant></entry>
1388 <entry><emphasis>Monday</emphasis></entry>
1393 <entry>Number of the weekday, one digit</entry>
1394 <entry><constant>Zend_Date::WEEKDAY_8601</constant></entry>
1396 <entry><emphasis>4</emphasis></entry>
1401 <entry>English suffixes for day of month, two chars</entry>
1402 <entry>no equivalent</entry>
1403 <entry>no equivalent</entry>
1404 <entry><emphasis>st</emphasis></entry>
1409 <entry>Number of the weekday, 0=sunday, 6=saturday</entry>
1410 <entry><constant>Zend_Date::WEEKDAY_DIGIT</constant></entry>
1411 <entry>no equivalent</entry>
1412 <entry><emphasis>4</emphasis></entry>
1417 <entry>Day of the year, one, two or three digit</entry>
1418 <entry><constant>Zend_Date::DAY_OF_YEAR</constant></entry>
1420 <entry><emphasis>7</emphasis></entry>
1425 <entry>Week, one or two digit</entry>
1426 <entry><constant>Zend_Date::WEEK</constant></entry>
1428 <entry><emphasis>5</emphasis></entry>
1433 <entry>Month, localized, complete</entry>
1434 <entry><constant>Zend_Date::MONTH_NAME</constant></entry>
1435 <entry><constant>MMMM</constant></entry>
1436 <entry><emphasis>February</emphasis></entry>
1441 <entry>Month, two digit</entry>
1442 <entry><constant>Zend_Date::MONTH</constant></entry>
1444 <entry><emphasis>02</emphasis></entry>
1449 <entry>Month, localized, abbreviated</entry>
1450 <entry><constant>Zend_Date::MONTH_NAME_SHORT</constant></entry>
1451 <entry><constant>MMM</constant></entry>
1452 <entry><emphasis>Feb</emphasis></entry>
1457 <entry>Month, one or two digit</entry>
1458 <entry><constant>Zend_Date::MONTH_SHORT</constant></entry>
1460 <entry><emphasis>2</emphasis></entry>
1465 <entry>Number of days per month, one or two digits</entry>
1466 <entry><constant>Zend_Date::MONTH_DAYS</constant></entry>
1467 <entry>no equivalent</entry>
1468 <entry><emphasis>30</emphasis></entry>
1473 <entry>Leapyear, boolean</entry>
1474 <entry><constant>Zend_Date::LEAPYEAR</constant></entry>
1475 <entry>no equivalent</entry>
1476 <entry><emphasis><constant>TRUE</constant></emphasis></entry>
1483 Year according to <acronym>ISO</acronym> 8601, at least four digit
1486 <entry><constant>Zend_Date::YEAR_8601</constant></entry>
1487 <entry><constant>YYYY</constant></entry>
1488 <entry><emphasis>2009</emphasis></entry>
1493 <entry>Year, at least four digit</entry>
1494 <entry><constant>Zend_Date::YEAR</constant></entry>
1496 <entry><emphasis>2009</emphasis></entry>
1501 <entry>Year, at least two digit</entry>
1502 <entry><constant>Zend_Date::YEAR_SHORT</constant></entry>
1504 <entry><emphasis>09</emphasis></entry>
1509 <entry>Time of day, localized</entry>
1510 <entry><constant>Zend_Date::MERIDIEM</constant></entry>
1511 <entry>a (sort of, but likely to be uppercase)</entry>
1512 <entry><emphasis>vorm.</emphasis></entry>
1517 <entry>Time of day, localized</entry>
1518 <entry><constant>Zend_Date::MERIDIEM</constant></entry>
1519 <entry>a (sort of, but no guarantee that the format is uppercase)</entry>
1520 <entry><emphasis><command>VORM.</command></emphasis></entry>
1525 <entry>Swatch internet time</entry>
1526 <entry><constant>Zend_Date::SWATCH</constant></entry>
1527 <entry>no equivalent</entry>
1528 <entry><emphasis>1463</emphasis></entry>
1533 <entry>Hour, (1-12), one or two digit</entry>
1534 <entry><constant>Zend_Date::HOUR_SHORT_AM</constant></entry>
1536 <entry><emphasis>2</emphasis></entry>
1541 <entry>Hour, (0-23), one or two digit</entry>
1542 <entry><constant>Zend_Date::HOUR_SHORT</constant></entry>
1544 <entry><emphasis>2</emphasis></entry>
1549 <entry>Hour, (01-12), two digit</entry>
1550 <entry><constant>Zend_Date::HOUR_AM</constant></entry>
1552 <entry><emphasis>02</emphasis></entry>
1557 <entry>Hour, (00-23), two digit</entry>
1558 <entry><constant>Zend_Date::HOUR</constant></entry>
1560 <entry><emphasis>02</emphasis></entry>
1565 <entry>Minute, (00-59), two digit</entry>
1566 <entry><constant>Zend_Date::MINUTE</constant></entry>
1568 <entry><emphasis>02</emphasis></entry>
1573 <entry>Second, (00-59), two digit</entry>
1574 <entry><constant>Zend_Date::SECOND</constant></entry>
1576 <entry><emphasis>02</emphasis></entry>
1581 <entry>Time zone, localized, complete</entry>
1582 <entry><constant>Zend_Date::TIMEZONE_NAME</constant></entry>
1584 <entry><emphasis><command>Europe/Paris</command></emphasis></entry>
1589 <entry>Daylight</entry>
1590 <entry><constant>Zend_Date::DAYLIGHT</constant></entry>
1591 <entry>no equivalent</entry>
1592 <entry><emphasis>1</emphasis></entry>
1597 <entry>Difference of time zone</entry>
1598 <entry><constant>Zend_Date::GMT_DIFF</constant></entry>
1599 <entry>Z or ZZ or <constant>ZZZ</constant></entry>
1600 <entry><emphasis>+0100</emphasis></entry>
1605 <entry>Difference of time zone, separated</entry>
1606 <entry><constant>Zend_Date::GMT_DIFF_SEP</constant></entry>
1607 <entry><constant>ZZZZ</constant></entry>
1608 <entry><emphasis>+01:00</emphasis></entry>
1613 <entry>Time zone, localized, abbreviated</entry>
1614 <entry><constant>Zend_Date::TIMEZONE</constant></entry>
1615 <entry>z or zz or zzz</entry>
1616 <entry><emphasis><constant>CET</constant></emphasis></entry>
1621 <entry>Time zone offset in seconds</entry>
1622 <entry><constant>Zend_Date::TIMEZONE_SECS</constant></entry>
1623 <entry>no equivalent</entry>
1624 <entry><emphasis>3600</emphasis></entry>
1629 <entry>Standard Iso format output</entry>
1630 <entry><constant>Zend_Date::ISO_8601</constant></entry>
1631 <entry>no equivalent</entry>
1632 <entry><emphasis>2004-02-13T15:19:21+00:00</emphasis></entry>
1637 <entry>Standard Rfc 2822 format output</entry>
1638 <entry><constant>Zend_Date::RFC_2822</constant></entry>
1639 <entry>no equivalent</entry>
1640 <entry><emphasis>Thu, 21 Dec 2000 16:01:07 +0200</emphasis></entry>
1645 <entry>Unix timestamp</entry>
1646 <entry><constant>Zend_Date::TIMESTAMP</constant></entry>
1647 <entry>no equivalent</entry>
1648 <entry><emphasis>15275422364</emphasis></entry>