Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

localize.h

00001 /*
00002  *  localize.h - Localization helper functions.
00003  *               This file is part of the FreeLCD package.
00004  *
00005  *  $Id: localize_8h-source.html,v 1.1 2003/02/16 22:50:41 unicorn Exp $
00006  *
00007  *  This program is free software; you can redistribute it and/or modify it
00008  *  under the terms of the GNU General Public License as published by the
00009  *  Free Software Foundation; either version 2 of the License, or (at your
00010  *  option) any later version.
00011  * 
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00020  *  MA  02111-1307  USA
00021  *
00022  *  Copyright (c) 2002, 2003, Jeroen van den Berg <unicorn@hippie.nu>
00023  */
00024 
00025 #ifndef _FLCDD_LOCALIZE_H
00026 #define _FLCDD_LOCALIZE_H
00027 
00028 /* Create a time string (e.g. "23:12" or "05.20 pm"). */
00029 char* l10n_time( int hours, int minutes );
00030 char* l10n_time_sec( int hours, int minutes, int seconds )
00031 
00032 /* Show a timespan */
00033 char* l10n_timespan( long seconds );
00034 
00035 /* Date functions */
00036 char* l10n_date_long( int day, int month, int year );
00037 char* l10n_date_short( int day, int month, int year );
00038 char* l10n_weekday_long( int weekday );
00039 char* l10n_weekday_short( int weekday );
00040 
00041 /* Convert to 3 digits plus metric (Kilo, Mega, Tera, Exa, Peta) */
00042 char* l10n_metric( float value );
00043 
00044 #endif /* Multiple include guard */

Generated on Sun Feb 16 23:39:49 2003 for FreeLCD by doxygen1.2.18