source: trunk/debathena/third/schroot/sbuild/sbuild-types.cc @ 24167

Revision 24167, 1.4 KB checked in by broder, 15 years ago (diff)
Import schroot upstream into subversion.
Line 
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
24using namespace sbuild;
25
26const char *
27sbuild::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
40const char *
41sbuild::isodate::get_date_format () const
42{
43  return "%Y-%m-%dT%H:%M:%SZ";
44}
Note: See TracBrowser for help on using the repository browser.