1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 /* Basic numeric formats. */
18 FMT (F, number, 1, 1, 5, FMT_CAT_BASIC)
19 FMT (COMMA, number, 1, 1, 3, FMT_CAT_BASIC)
20 FMT (DOT, number, 1, 1, 32, FMT_CAT_BASIC)
21 FMT (DOLLAR, number, 1, 2, 4, FMT_CAT_BASIC)
22 FMT (PCT, number, 1, 2, 31, FMT_CAT_BASIC)
23 FMT (E, number, 1, 6, 17, FMT_CAT_BASIC)
25 /* Custom currency formats. */
26 FMT (CCA, number, -1, 2, 33, FMT_CAT_CUSTOM)
27 FMT (CCB, number, -1, 2, 34, FMT_CAT_CUSTOM)
28 FMT (CCC, number, -1, 2, 35, FMT_CAT_CUSTOM)
29 FMT (CCD, number, -1, 2, 36, FMT_CAT_CUSTOM)
30 FMT (CCE, number, -1, 2, 37, FMT_CAT_CUSTOM)
32 /* Legacy numeric formats. */
33 FMT (N, N, 1, 1, 16, FMT_CAT_LEGACY)
34 FMT (Z, Z, 1, 1, 16, FMT_CAT_LEGACY)
36 /* Binary and hexadecimal formats. */
37 FMT (P, P, 1, 1, 8, FMT_CAT_BINARY)
38 FMT (PK, PK, 1, 1, 10, FMT_CAT_BINARY)
39 FMT (IB, IB, 1, 1, 6, FMT_CAT_BINARY)
40 FMT (PIB, PIB, 1, 1, 9, FMT_CAT_BINARY)
41 FMT (PIBHEX, PIBHEX, 2, 2, 7, FMT_CAT_HEXADECIMAL)
42 FMT (RB, RB, 2, 2, 11, FMT_CAT_BINARY)
43 FMT (RBHEX, RBHEX, 4, 4, 12, FMT_CAT_HEXADECIMAL)
45 /* Time and date formats. */
46 FMT (DATE, date, 8, 9, 20, FMT_CAT_DATE)
47 FMT (ADATE, date, 8, 8, 23, FMT_CAT_DATE)
48 FMT (EDATE, date, 8, 8, 38, FMT_CAT_DATE)
49 FMT (JDATE, date, 5, 5, 24, FMT_CAT_DATE)
50 FMT (SDATE, date, 8, 8, 39, FMT_CAT_DATE)
51 FMT (QYR, date, 4, 6, 29, FMT_CAT_DATE)
52 FMT (MOYR, date, 6, 6, 28, FMT_CAT_DATE)
53 FMT (WKYR, date, 6, 8, 30, FMT_CAT_DATE)
54 FMT (DATETIME, date, 17, 17, 22, FMT_CAT_DATE)
55 FMT (TIME, date, 5, 5, 21, FMT_CAT_TIME)
56 FMT (DTIME, date, 8, 8, 25, FMT_CAT_TIME)
58 /* Date component formats. */
59 FMT (WKDAY, WKDAY, 2, 2, 26, FMT_CAT_DATE_COMPONENT)
60 FMT (MONTH, MONTH, 3, 3, 27, FMT_CAT_DATE_COMPONENT)
63 FMT (A, A, 1, 1, 1, FMT_CAT_STRING)
64 FMT (AHEX, AHEX, 2, 2, 2, FMT_CAT_STRING)