1 | /* Copyright © 2006-2007 Roger Leigh <rleigh@debian.org> |
---|
2 | * |
---|
3 | * schroot is free software: you can redistribute it and/or modify it |
---|
4 | * under the terms of the GNU General Public License as published by |
---|
5 | * the Free Software Foundation, either version 3 of the License, or |
---|
6 | * (at your option) any later version. |
---|
7 | * |
---|
8 | * schroot is distributed in the hope that it will be useful, but |
---|
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
11 | * General Public License for more details. |
---|
12 | * |
---|
13 | * You should have received a copy of the GNU General Public License |
---|
14 | * along with this program. If not, see |
---|
15 | * <http://www.gnu.org/licenses/>. |
---|
16 | * |
---|
17 | *********************************************************************/ |
---|
18 | |
---|
19 | #include <config.h> |
---|
20 | |
---|
21 | #include "sbuild-types.h" |
---|
22 | #include <sbuild/sbuild-i18n.h> |
---|
23 | |
---|
24 | using namespace sbuild; |
---|
25 | |
---|
26 | const char * |
---|
27 | sbuild::date_base::get_date_format () const |
---|
28 | { |
---|
29 | // TRANSLATORS: Format string for date representation: |
---|
30 | // %d = day (number, e.g. 14) |
---|
31 | // %b = month (three letters, e.g. Jul) |
---|
32 | // %Y = year (four digits, e.g. 2006) |
---|
33 | // If required, any of the standard strftime(3) |
---|
34 | // format specifiers may be used instead, as long as |
---|
35 | // the day, month and year are clearly displayed in |
---|
36 | // the equivalent standard method for your locale. |
---|
37 | return _("%d %b %Y"); |
---|
38 | } |
---|
39 | |
---|
40 | const char * |
---|
41 | sbuild::isodate::get_date_format () const |
---|
42 | { |
---|
43 | return "%Y-%m-%dT%H:%M:%SZ"; |
---|
44 | } |
---|