X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/vendor/wikimedia/timestamp/src/defines.php diff --git a/vendor/wikimedia/timestamp/src/defines.php b/vendor/wikimedia/timestamp/src/defines.php new file mode 100644 index 00000000..98c6ca54 --- /dev/null +++ b/vendor/wikimedia/timestamp/src/defines.php @@ -0,0 +1,73 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Tyler Romeo + */ + +/** + * Unix time - the number of seconds since 1970-01-01 00:00:00 UTC + */ +define( 'TS_UNIX', 0 ); + +/** + * MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS) + */ +define( 'TS_MW', 1 ); + +/** + * MySQL DATETIME (YYYY-MM-DD HH:MM:SS) + */ +define( 'TS_DB', 2 ); + +/** + * RFC 2822 format, for E-mail and HTTP headers + */ +define( 'TS_RFC2822', 3 ); + +/** + * ISO 8601 format with no timezone: 1986-02-09T20:00:00Z + */ +define( 'TS_ISO_8601', 4 ); + +/** + * An Exif timestamp (YYYY:MM:DD HH:MM:SS) + * + * @see 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. + */ +define( 'TS_EXIF', 5 ); + +/** + * Oracle format time. + */ +define( 'TS_ORACLE', 6 ); + +/** + * Postgres format time. + */ +define( 'TS_POSTGRES', 7 ); + +/** + * ISO 8601 basic format with no timezone: 19860209T200000Z. + */ +define( 'TS_ISO_8601_BASIC', 9 );