Go to the documentation of this file.
45 function date( $ts, $adj =
false, $format =
true, $tc =
false ) {
50 $datePreference = $this->
dateFormat( $format );
52 # ISO (YYYY-mm-dd) format
54 # we also output this format for YMD (eg: 2001 January 15)
55 if ( $datePreference ==
'ISO 8601' ) {
56 $d = substr( $ts, 0, 4 ) .
'-' . substr( $ts, 4, 2 ) .
'-' . substr( $ts, 6, 2 );
61 if ( $datePreference ==
'walloon short' ) {
62 $d = substr( $ts, 6, 2 ) .
'/' . substr( $ts, 4, 2 ) .
'/' . substr( $ts, 0, 4 );
68 # we output this in all other cases
69 $m = substr( $ts, 4, 2 );
70 $n = substr( $ts, 6, 2 );
73 " " . substr( $ts, 0, 4 );
74 } elseif (
$n == 2 ||
$n == 3 ||
$n == 20 ||
$n == 22 ||
$n == 23 ) {
76 " " . substr( $ts, 0, 4 );
77 } elseif ( $m == 4 || $m == 8 || $m == 10 ) {
79 " " . substr( $ts, 0, 4 );
82 " " . substr( $ts, 0, 4 );
94 function timeanddate( $ts, $adj =
false, $format =
true, $tc =
false ) {
98 $datePreference = $this->
dateFormat( $format );
99 if ( $datePreference ==
'ISO 8601' ) {
100 return parent::timeanddate( $ts, $adj, $format, $tc );
102 return $this->
date( $ts, $adj, $format, $tc ) .
' a ' .
103 $this->
time( $ts, $adj, $format, $tc );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
timeanddate( $ts, $adj=false, $format=true, $tc=false)
const TS_MW
MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)
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...
dateFormat( $usePrefs=true)
This is meant to be used by time(), date(), and timeanddate() to get the date preference they're supp...
userAdjust( $ts, $tz=false)
Used by date() and time() to adjust the time output.
time( $ts, $adj=false, $format=true, $timecorrection=false)
Internationalisation code.