MediaWiki REL1_28
defines.php File Reference

Go to the source code of this file.

Variables

const TS_DB 2
 MySQL DATETIME (YYYY-MM-DD HH:MM:SS)
 
const TS_EXIF 5
 An Exif timestamp (YYYY:MM:DD HH:MM:SS)
 
const TS_ISO_8601 4
 ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
 
const TS_ISO_8601_BASIC 9
 ISO 8601 basic format with no timezone: 19860209T200000Z.
 
const TS_MW 1
 MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)
 
const TS_ORACLE 6
 Oracle format time.
 
const TS_POSTGRES 7
 Postgres format time.
 
const TS_RFC2822 3
 RFC 2822 format, for E-mail and HTTP headers.
 
const TS_UNIX 0
 Unix time - the number of seconds since 1970-01-01 00:00:00 UTC.
 

Variable Documentation

◆ TS_DB

◆ TS_EXIF

const TS_EXIF 5

An Exif timestamp (YYYY:MM:DD HH:MM:SS)

See also
http://exif.org/Exif2-2.PDF The Exif 2.2 spec, see page 28 for the DateTime tag and page 36 for the DateTimeOriginal and DateTimeDigitized tags.

Definition at line 37 of file defines.php.

Referenced by PNGMetadataExtractor\getMetadata(), ConvertibleTimestampTest\provideValidTimestamps(), IPTC\timeHelper(), and XMPValidate\validateDate().

◆ TS_ISO_8601

const TS_ISO_8601 4

ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.

This is used by Special:Export

Definition at line 28 of file defines.php.

Referenced by ApiQuerySiteinfo\appendExtensions(), ApiQuerySiteinfo\appendGeneralInfo(), OutputPage\checkLastModified(), ApiBlock\execute(), ApiCheckToken\execute(), ApiEditPage\execute(), ApiMergeHistory\execute(), ApiProtect\execute(), ApiQueryAllUsers\execute(), ApiQueryBlocks\execute(), ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), ApiQueryImageInfo\execute(), ApiQueryUsers\execute(), ApiSetNotificationTimestamp\execute(), GenerateSitemap\execute(), ApiQueryWatchlist\extractOutputData(), ApiQueryInfo\extractPageInfo(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryLogEvents\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), ApiQueryContributions\extractRowInfo(), ProtectLogFormatter\formatParametersForApi(), LogFormatter\formatParameterValueForApi(), GenerateSitemap\generateLimit(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), RevDelRevisionItem\getApiData(), ApiQueryUserInfo\getBlockInfo(), ApiQueryUserInfo\getCurrentUserInfo(), FormatMetadata\getExtendedMetadataFromFile(), ApiQueryImageInfo\getInfo(), ApiParamInfo\getModuleInfo(), ApiQueryInfo\getProtectionInfo(), GenerateSitemap\main(), ConvertibleTimestampTest\provideValidTimestamps(), ApiQueryCategories\run(), ApiQueryCategoryMembers\run(), ApiQueryDuplicateFiles\run(), ApiQueryProtectedTitles\run(), ApiQueryQueryPage\run(), ApiQuerySearch\run(), ApiQueryWatchlistRaw\run(), ApiMain\setupExecuteAction(), ApiUpload\transformWarnings(), and XmlDumpWriter\writeTimestamp().

◆ TS_ISO_8601_BASIC

const TS_ISO_8601_BASIC 9

ISO 8601 basic format with no timezone: 19860209T200000Z.

This is used by ResourceLoader

Definition at line 52 of file defines.php.

Referenced by WfTimestampTest\provideNormalTimestamps(), and ConvertibleTimestampTest\provideValidTimestamps().

◆ TS_MW

const TS_MW 1

MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)

Definition at line 11 of file defines.php.

Referenced by Block\__construct(), BlockTest\addDBData(), SwiftFileBackend\buildFileObjectListing(), SpecialRecentChanges\buildMainQueryConds(), FileCacheBase\cacheTimestamp(), ApiMain\checkConditionalRequestHeaders(), AjaxResponse\checkLastModified(), OutputPage\checkLastModified(), WikiPage\commitRollback(), User\confirmationToken(), LanguageWa\date(), Language\date(), LocalFile\decodeRow(), SpecialUndelete\diffHeader(), MemoryFileBackend\doCopyInternal(), MemoryFileBackend\doCreateInternal(), FSFileBackend\doGetFileStat(), WikiPage\doPurge(), MemoryFileBackend\doStoreInternal(), SpecialExport\execute(), ApiFeedWatchlist\execute(), ApiProtect\execute(), ApiUndelete\execute(), LocalFileRestoreBatch\execute(), BenchmarkParse\execute(), PurgeParserCache\execute(), UpdateSearchIndex\execute(), CacheTime\expired(), HistoryAction\feedEmpty(), FeedUtils\formatDiff(), SpecialUndelete\formatFileRow(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), ImageListPager\formatValue(), Block\getAutoblockExpiry(), CacheTime\getCacheTime(), NewUsersLogFormatter\getComment(), LocalFile\getDescriptionTouched(), ProtectionForm\getExpiry(), ApiQueryWatchlistIntegrationTest\getExternalRC(), User\getFirstEditTimestamp(), Language\getHumanTimestampInternal(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider\getNewPasswordExpiry(), WatchedItemStore\getNotificationTimestamp(), PageArchive\getPreviousRevision(), SwiftFileBackend\getStatFromHeaders(), ImageHistoryList\getThumbForLine(), ConvertibleTimestamp\getTimestamp(), ArchivedFile\getTimestamp(), ForeignAPIFile\getTimestamp(), FSFile\getTimestamp(), DatabaseLogEntry\getTimestamp(), RCDatabaseLogEntry\getTimestamp(), ManualLogEntry\getTimestamp(), WikiPage\getTimestamp(), Revision\getTimestamp(), RevisionItemBase\getTimestamp(), MockFSFile\getTimestamp(), FileJournal\getTimestampedUUID(), Revision\getTimestampFromId(), User\getTouched(), Parser\getVariableValue(), ImageHistoryList\imageHistoryLine(), Block\initFromRow(), Language\internalUserTimeAndDate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\isTimestampValid(), ApiStashEdit\lastEditTime(), User\loadDefaults(), MessageCache\loadFromDB(), WikiPage\loadFromRow(), RecentChange\loadFromRow(), User\loadFromRow(), SpecialUndelete\loadRequest(), FormatMetadata\makeFormattedData(), MergeHistory\merge(), User\newTouchedTimestamp(), SpecialBlock\parseExpiryInput(), ApiMainTest\provideCheckConditionalRequestHeaders(), WfTimestampTest\provideNormalTimestamps(), WfTimestampTest\provideOldTimestamps(), ConvertibleTimestampTest\provideOutOfRangeTimestamps(), ConvertibleTimestampTest\provideValidTimestamps(), LocalFile\publishTo(), LocalFile\recordUpload2(), RefreshLinksJob\runForTitle(), ChangesFeed\saveToCache(), WikiRevision\setTimestamp(), WikiPage\setTimestamp(), EditPageTest\testAutoMerge(), ConvertibleTimestampTest\testConstructWithNoTimestamp(), WfTimestampTest\testHttpDate(), JobQueueTest\testRootDeduplication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest\testSetPasswordResetFlag(), TitlePermissionTest\testUserBlock(), ConvertibleTimestampTest\testValidParse(), Language\time(), Language\timeanddate(), Database\timestamp(), ResourceLoader\tryRespondFromFileCache(), WikiPage\updateIfNewerOn(), ApiBase\validateTimestamp(), EditPage\wasDeletedSinceLastEdit(), and wfTimestampNow().

◆ TS_ORACLE

const TS_ORACLE 6

Oracle format time.

Definition at line 42 of file defines.php.

Referenced by ConvertibleTimestampTest\provideValidTimestamps(), and DatabaseOracle\timestamp().

◆ TS_POSTGRES

const TS_POSTGRES 7

◆ TS_RFC2822

◆ TS_UNIX

const TS_UNIX 0

Unix time - the number of seconds since 1970-01-01 00:00:00 UTC.

Definition at line 6 of file defines.php.

Referenced by OutputPage\adaptCdnTTL(), LinkCache\addLinkObj(), ApiStashEdit\buildStashValue(), SiteStatsUpdate\cacheUpdate(), ApiStashEdit\checkCache(), Autopromote\checkCondition(), FileBackendMultiWrite\consistencyCheck(), SqlBagOStuff\deleteObjectsExpiringBefore(), DBFileJournal\doLogChangeBatch(), FileBackendTest\doTestGetFileStat(), SpecialActiveUsers\execute(), ApiQueryAllUsers\execute(), LocalFileRestoreBatch\execute(), UploadStashCleanup\execute(), FixTimestamps\execute(), ImportTextFiles\execute(), RemoveUnusedAccounts\execute(), JobRunner\executeJob(), AtomFeed\formatTime(), RSSFeed\formatTime(), Block\getAutoblockExpiry(), OutputPage\getJSVars(), MachineReadableRCFeedFormatter\getLine(), SpecialRandomInCategory\getMinAndMaxForCat(), BlockLogFormatter\getParametersForApi(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\getPasswordResetData(), ActiveUsersPager\getQueryInfo(), Job\getQueuedTimestamp(), Job\getReleaseTimestamp(), JobSpecification\getReleaseTimestamp(), Parser\getVariableValue(), ApiQueryInfo\getVisitingWatcherInfo(), ForeignAPIRepo\httpGet(), SqlBagOStuff\isExpired(), RecentChange\isInRCLifespan(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\isTimestampValid(), ChangesFeed\loadFromCache(), LocalFile\loadFromCache(), User\loadFromCache(), User\newTouchedTimestamp(), InfoAction\pageCounts(), ApiStashEdit\parseAndStash(), WfTimestampTest\provideNormalTimestamps(), WfTimestampTest\provideOldTimestamps(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\providerAllowsAuthenticationDataChange(), ConvertibleTimestampTest\provideValidTimestamps(), RebuildRecentchanges\rebuildRecentChangesTablePass1(), QueryPage\recache(), LocalFile\recordUpload2(), CategoryMembershipChangeJob\run(), RefreshLinksJob\runForTitle(), FileBackendStore\setFileCache(), HTTPFileStreamer\stream(), UpdateLogging\sync(), EditPageTest\testAutoMerge(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest\testGetNewPasswordExpiry(), WfTimestampTest\testTimestampParameter(), IPTC\timeHelper(), RecentChangesUpdateJob\updateActiveUsers(), XMPValidate\validateDate(), ApiBase\validateTimestamp(), and wfStreamThumb().