xref: /haiku/headers/private/libroot/time/timelocal.h (revision a3f665982e2e078ba42e7bf941bd5f3dd8989c55)
1*a3f66598SOliver Tappe /*-
2*a3f66598SOliver Tappe  * Copyright (c) 1997-2002 FreeBSD Project.
3*a3f66598SOliver Tappe  * All rights reserved.
4*a3f66598SOliver Tappe  *
5*a3f66598SOliver Tappe  * Redistribution and use in source and binary forms, with or without
6*a3f66598SOliver Tappe  * modification, are permitted provided that the following conditions
7*a3f66598SOliver Tappe  * are met:
8*a3f66598SOliver Tappe  * 1. Redistributions of source code must retain the above copyright
9*a3f66598SOliver Tappe  *    notice, this list of conditions and the following disclaimer.
10*a3f66598SOliver Tappe  * 2. Redistributions in binary form must reproduce the above copyright
11*a3f66598SOliver Tappe  *    notice, this list of conditions and the following disclaimer in the
12*a3f66598SOliver Tappe  *    documentation and/or other materials provided with the distribution.
13*a3f66598SOliver Tappe  *
14*a3f66598SOliver Tappe  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*a3f66598SOliver Tappe  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*a3f66598SOliver Tappe  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*a3f66598SOliver Tappe  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*a3f66598SOliver Tappe  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*a3f66598SOliver Tappe  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*a3f66598SOliver Tappe  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*a3f66598SOliver Tappe  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*a3f66598SOliver Tappe  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*a3f66598SOliver Tappe  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*a3f66598SOliver Tappe  * SUCH DAMAGE.
25*a3f66598SOliver Tappe  *
26*a3f66598SOliver Tappe  * $FreeBSD: /repoman/r/ncvs/src/lib/libc/stdtime/timelocal.h,v 1.11 2002/01/24 15:07:44 phantom Exp $
27*a3f66598SOliver Tappe  */
28*a3f66598SOliver Tappe #ifndef _TIMELOCAL_H_
29*a3f66598SOliver Tappe #define	_TIMELOCAL_H_
30*a3f66598SOliver Tappe 
31*a3f66598SOliver Tappe 
32*a3f66598SOliver Tappe #include <sys/cdefs.h>
33*a3f66598SOliver Tappe 
34*a3f66598SOliver Tappe 
35*a3f66598SOliver Tappe /*
36*a3f66598SOliver Tappe  * Private header file for the strftime and strptime localization
37*a3f66598SOliver Tappe  * stuff.
38*a3f66598SOliver Tappe  */
39*a3f66598SOliver Tappe struct lc_time_t {
40*a3f66598SOliver Tappe 	const char* mon[12];
41*a3f66598SOliver Tappe 	const char* month[12];
42*a3f66598SOliver Tappe 	const char* wday[7];
43*a3f66598SOliver Tappe 	const char* weekday[7];
44*a3f66598SOliver Tappe 	const char* X_fmt;
45*a3f66598SOliver Tappe 	const char* x_fmt;
46*a3f66598SOliver Tappe 	const char* c_fmt;
47*a3f66598SOliver Tappe 	const char* am;
48*a3f66598SOliver Tappe 	const char* pm;
49*a3f66598SOliver Tappe 	const char* date_fmt;
50*a3f66598SOliver Tappe 	const char* alt_month[12];
51*a3f66598SOliver Tappe 	const char* md_order;
52*a3f66598SOliver Tappe 	const char* ampm_fmt;
53*a3f66598SOliver Tappe };
54*a3f66598SOliver Tappe 
55*a3f66598SOliver Tappe __BEGIN_DECLS
56*a3f66598SOliver Tappe const struct lc_time_t* __get_current_time_locale(void);
57*a3f66598SOliver Tappe __END_DECLS
58*a3f66598SOliver Tappe 
59*a3f66598SOliver Tappe 
60*a3f66598SOliver Tappe #endif /* !_TIMELOCAL_H_ */
61