| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: date_api_formats_list.inc,v 1.1.2.1 2009/01/25 13:03:13 karens Exp $ 3 /** 4 * @file 5 * Initialize the list of date formats and their locales. 6 */ 7 8 function _date_api_date_formats_list() { 9 $formats = array(); 10 11 // Short date formats. 12 $formats[] = array( 13 'type' => 'short', 14 'format' => 'Y-m-d H:i', 15 'locales' => array(), 16 ); 17 $formats[] = array( 18 'type' => 'short', 19 'format' => 'm/d/Y - H:i', 20 'locales' => array('en-us',), 21 ); 22 $formats[] = array( 23 'type' => 'short', 24 'format' => 'd/m/Y - H:i', 25 'locales' => array('en-gb', 'en-hk', 'en-ie', 'el-gr', 'es-es', 'fr-be', 'fr-fr', 'fr-lu', 'it-it', 'nl-be', 'pt-pt',), 26 ); 27 $formats[] = array( 28 'type' => 'short', 29 'format' => 'Y/m/d - H:i', 30 'locales' => array('en-ca', 'fr-ca', 'no-no', 'sv-se',), 31 ); 32 $formats[] = array( 33 'type' => 'short', 34 'format' => 'd.m.Y - H:i', 35 'locales' => array('de-ch', 'de-de', 'de-lu', 'fi-fi', 'fr-ch', 'is-is', 'pl-pl', 'ro-ro', 'ru-ru',), 36 ); 37 $formats[] = array( 38 'type' => 'short', 39 'format' => 'm/d/Y - g:ia', 40 'locales' => array(), 41 ); 42 $formats[] = array( 43 'type' => 'short', 44 'format' => 'd/m/Y - g:ia', 45 'locales' => array(), 46 ); 47 $formats[] = array( 48 'type' => 'short', 49 'format' => 'Y/m/d - g:ia', 50 'locales' => array(), 51 ); 52 $formats[] = array( 53 'type' => 'short', 54 'format' => 'M j Y - H:i', 55 'locales' => array(), 56 ); 57 $formats[] = array( 58 'type' => 'short', 59 'format' => 'j M Y - H:i', 60 'locales' => array(), 61 ); 62 $formats[] = array( 63 'type' => 'short', 64 'format' => 'Y M j - H:i', 65 'locales' => array(), 66 ); 67 $formats[] = array( 68 'type' => 'short', 69 'format' => 'M j Y - g:ia', 70 'locales' => array(), 71 ); 72 $formats[] = array( 73 'type' => 'short', 74 'format' => 'j M Y - g:ia', 75 'locales' => array(), 76 ); 77 $formats[] = array( 78 'type' => 'short', 79 'format' => 'Y M j - g:ia', 80 'locales' => array(), 81 ); 82 83 // Medium date formats. 84 $formats[] = array( 85 'type' => 'medium', 86 'format' => 'D, Y-m-d H:i', 87 'locales' => array(), 88 ); 89 $formats[] = array( 90 'type' => 'medium', 91 'format' => 'D, m/d/Y - H:i', 92 'locales' => array('en-us',), 93 ); 94 $formats[] = array( 95 'type' => 'medium', 96 'format' => 'D, d/m/Y - H:i', 97 'locales' => array('en-gb', 'en-hk', 'en-ie', 'el-gr', 'es-es', 'fr-be', 'fr-fr', 'fr-lu', 'it-it', 'nl-be', 'pt-pt',), 98 ); 99 $formats[] = array( 100 'type' => 'medium', 101 'format' => 'D, Y/m/d - H:i', 102 'locales' => array('en-ca', 'fr-ca', 'no-no', 'sv-se',), 103 ); 104 $formats[] = array( 105 'type' => 'medium', 106 'format' => 'F j, Y - H:i', 107 'locales' => array(), 108 ); 109 $formats[] = array( 110 'type' => 'medium', 111 'format' => 'j F, Y - H:i', 112 'locales' => array(), 113 ); 114 $formats[] = array( 115 'type' => 'medium', 116 'format' => 'Y, F j - H:i', 117 'locales' => array(), 118 ); 119 $formats[] = array( 120 'type' => 'medium', 121 'format' => 'D, m/d/Y - g:ia', 122 'locales' => array(), 123 ); 124 $formats[] = array( 125 'type' => 'medium', 126 'format' => 'D, d/m/Y - g:ia', 127 'locales' => array(), 128 ); 129 $formats[] = array( 130 'type' => 'medium', 131 'format' => 'D, Y/m/d - g:ia', 132 'locales' => array(), 133 ); 134 $formats[] = array( 135 'type' => 'medium', 136 'format' => 'F j, Y - g:ia', 137 'locales' => array(), 138 ); 139 $formats[] = array( 140 'type' => 'medium', 141 'format' => 'j F Y - g:ia', 142 'locales' => array(), 143 ); 144 $formats[] = array( 145 'type' => 'medium', 146 'format' => 'Y, F j - g:ia', 147 'locales' => array(), 148 ); 149 $formats[] = array( 150 'type' => 'medium', 151 'format' => 'j. F Y - G:i', 152 'locales' => array(), 153 ); 154 155 // Long date formats. 156 $formats[] = array( 157 'type' => 'long', 158 'format' => 'l, F j, Y - H:i', 159 'locales' => array(), 160 ); 161 $formats[] = array( 162 'type' => 'long', 163 'format' => 'l, j F, Y - H:i', 164 'locales' => array(), 165 ); 166 $formats[] = array( 167 'type' => 'long', 168 'format' => 'l, Y, F j - H:i', 169 'locales' => array(), 170 ); 171 $formats[] = array( 172 'type' => 'long', 173 'format' => 'l, F j, Y - g:ia', 174 'locales' => array(), 175 ); 176 $formats[] = array( 177 'type' => 'long', 178 'format' => 'l, j F Y - g:ia', 179 'locales' => array(), 180 ); 181 $formats[] = array( 182 'type' => 'long', 183 'format' => 'l, Y, F j - g:ia', 184 'locales' => array(), 185 ); 186 $formats[] = array( 187 'type' => 'long', 188 'format' => 'l, j. F Y - G:i', 189 'locales' => array(), 190 ); 191 192 return $formats; 193 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |