42 public function date( $ts, $adj =
false, $format =
true, $tc =
false ) {
43 $datePreference = $this->
dateFormat( $format );
44 if ( $datePreference ==
'ISO 8601' || $datePreference ==
'walloon short' ) {
45 return parent::date( $ts, $adj, $format, $tc );
53 # Walloon 'dmy' format
54 $m = (int)substr( $ts, 4, 2 );
55 $n = (int)substr( $ts, 6, 2 );
58 " " . substr( $ts, 0, 4 );
59 } elseif ( $n == 2 || $n == 3 || $n == 20 || $n == 22 || $n == 23 ) {
61 " " . substr( $ts, 0, 4 );
62 } elseif ( $m == 4 || $m == 8 || $m == 10 ) {
64 " " . substr( $ts, 0, 4 );
67 " " . substr( $ts, 0, 4 );
79 public function timeanddate( $ts, $adj =
false, $format =
true, $tc =
false ) {
80 $datePreference = $this->
dateFormat( $format );
81 if ( $datePreference ==
'ISO 8601' || $datePreference ==
'walloon short' ) {
82 return parent::timeanddate( $ts, $adj, $format, $tc );
85 # Walloon 'dmy' format
86 return $this->
date( $ts, $adj, $format, $tc ) .
' a ' .
87 $this->
time( $ts, $adj, $format, $tc );
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
timeanddate( $ts, $adj=false, $format=true, $tc=false)
date( $ts, $adj=false, $format=true, $tc=false)
Dates in Walloon are "1î d' <monthname>" for 1st of the month, "<day> di <monthname>" for months star...
Base class for language-specific code.
userAdjust( $ts, $tz=false)
Used by date() and time() to adjust the time output.
dateFormat( $usePrefs=true)
This is meant to be used by time(), date(), and timeanddate() to get the date preference they're supp...
time( $ts, $adj=false, $format=true, $timecorrection=false)