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

Variable Documentation

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().

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

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().

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(), ApiProtect\execute(), ApiUndelete\execute(), SpecialExport\execute(), PurgeParserCache\execute(), ApiFeedWatchlist\execute(), UpdateSearchIndex\execute(), BenchmarkParse\execute(), LocalFileRestoreBatch\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(), MockFSFile\getTimestamp(), FSFile\getTimestamp(), RevisionItemBase\getTimestamp(), ForeignAPIFile\getTimestamp(), DatabaseLogEntry\getTimestamp(), RCDatabaseLogEntry\getTimestamp(), ArchivedFile\getTimestamp(), WikiPage\getTimestamp(), ManualLogEntry\getTimestamp(), Revision\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(), and EditPage\wasDeletedSinceLastEdit().

const TS_ORACLE 6

Oracle format time.

Definition at line 42 of file defines.php.

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

const TS_POSTGRES 7
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(), RemoveUnusedAccounts\execute(), UploadStashCleanup\execute(), SpecialActiveUsers\execute(), FixTimestamps\execute(), ApiQueryAllUsers\execute(), ImportTextFiles\execute(), LocalFileRestoreBatch\execute(), JobRunner\executeJob(), RSSFeed\formatTime(), AtomFeed\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().