40 public function date( $ts, $adj =
false, $format =
true, $timecorrection =
false ) {
41 $datePreference = $this->
dateFormat( $format );
42 if ( $datePreference ==
'ISO 8601' || $datePreference ==
'walloon short' ) {
43 return parent::date( $ts, $adj, $format, $timecorrection );
48 $ts = $this->
userAdjust( $ts, $timecorrection );
51 # Walloon 'dmy' format
52 $m = (int)substr( $ts, 4, 2 );
53 $n = (int)substr( $ts, 6, 2 );
56 " " . substr( $ts, 0, 4 );
57 } elseif ( $n == 2 || $n == 3 || $n == 20 || $n == 22 || $n == 23 ) {
59 " " . substr( $ts, 0, 4 );
60 } elseif ( $m == 4 || $m == 8 || $m == 10 ) {
62 " " . substr( $ts, 0, 4 );
65 " " . substr( $ts, 0, 4 );
70 public function timeanddate( $ts, $adj =
false, $format =
true, $tc =
false ) {
71 $datePreference = $this->
dateFormat( $format );
72 if ( $datePreference ==
'ISO 8601' || $datePreference ==
'walloon short' ) {
73 return parent::timeanddate( $ts, $adj, $format, $tc );
76 # Walloon 'dmy' format
77 return $this->
date( $ts, $adj, $format, $tc ) .
' a ' .
78 $this->
time( $ts, $adj, $format, $tc );
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
date( $ts, $adj=false, $format=true, $timecorrection=false)
Dates in Walloon are "1î d' <monthname>" for 1st of the month, "<day> di <monthname>" for months star...
timeanddate( $ts, $adj=false, $format=true, $tc=false)