Index: trunk/extensions/ParserFunctions/SprintfDateCompat.php |
— | — | @@ -141,6 +141,15 @@ |
142 | 142 | if ( !$unix ) $unix = wfTimestamp( TS_UNIX, $ts ); |
143 | 143 | $num = $unix; |
144 | 144 | break; |
| 145 | + case 'B': |
| 146 | + if ( !$unix ) $unix = wfTimestamp( TS_UNIX, $ts ); |
| 147 | + $num = date( 'B', $unix ); |
| 148 | + break; |
| 149 | + case 'S': |
| 150 | + if ( !$unix ) $unix = wfTimestamp( TS_UNIX, $ts ); |
| 151 | + $num = date( 'S', $unix ); |
| 152 | + break; |
| 153 | + |
145 | 154 | case '\\': |
146 | 155 | # Backslash escaping |
147 | 156 | if ( $p < strlen( $format ) - 1 ) { |