]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - vendor/wikimedia/timestamp/src/defines.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / wikimedia / timestamp / src / defines.php
1 <?php
2 /**
3  * Timestamp
4  *
5  * Copyright (C) 2012 Tyler Romeo <tylerromeo@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  * http://www.gnu.org/copyleft/gpl.html
21  *
22  * @file
23  * @author Tyler Romeo <tylerromeo@gmail.com>
24  */
25
26 /**
27  * Unix time - the number of seconds since 1970-01-01 00:00:00 UTC
28  */
29 define( 'TS_UNIX', 0 );
30
31 /**
32  * MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)
33  */
34 define( 'TS_MW', 1 );
35
36 /**
37  * MySQL DATETIME (YYYY-MM-DD HH:MM:SS)
38  */
39 define( 'TS_DB', 2 );
40
41 /**
42  * RFC 2822 format, for E-mail and HTTP headers
43  */
44 define( 'TS_RFC2822', 3 );
45
46 /**
47  * ISO 8601 format with no timezone: 1986-02-09T20:00:00Z
48  */
49 define( 'TS_ISO_8601', 4 );
50
51 /**
52  * An Exif timestamp (YYYY:MM:DD HH:MM:SS)
53  *
54  * @see http://exif.org/Exif2-2.PDF The Exif 2.2 spec, see page 28 for the
55  *       DateTime tag and page 36 for the DateTimeOriginal and
56  *       DateTimeDigitized tags.
57  */
58 define( 'TS_EXIF', 5 );
59
60 /**
61  * Oracle format time.
62  */
63 define( 'TS_ORACLE', 6 );
64
65 /**
66  * Postgres format time.
67  */
68 define( 'TS_POSTGRES', 7 );
69
70 /**
71  * ISO 8601 basic format with no timezone: 19860209T200000Z.
72  */
73 define( 'TS_ISO_8601_BASIC', 9 );