35 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
36 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
37 "Friday",
"Saturday"};
40 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
41 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
42 "January",
"February",
"March",
"April",
"May",
"June",
43 "July",
"August",
"September",
"October",
"November",
"December"};
45#ifndef _STLP_NO_WCHAR_T
47 L"Sun",
L"Mon",
L"Tue",
L"Wed",
L"Thu",
L"Fri",
L"Sat",
48 L"Sunday",
L"Monday",
L"Tuesday",
L"Wednesday",
L"Thursday",
49 L"Friday",
L"Saturday"};
52 L"Jan",
L"Feb",
L"Mar",
L"Apr",
L"May",
L"Jun",
53 L"Jul",
L"Aug",
L"Sep",
L"Oct",
L"Nov",
L"Dec",
54 L"January",
L"February",
L"March",
L"April",
L"May",
L"June",
55 L"July",
L"August",
L"September",
L"October",
L"November",
L"December"};
58#if defined (__BORLANDC__)
60# ifndef _STLP_NO_WCHAR_T
70 table._M_time_format =
"%H:%M:%S";
71 table._M_date_format =
"%m/%d/%y";
72 table._M_date_time_format =
"%m/%d/%y";
77 for (
i = 0;
i < 14; ++
i)
81 table._M_am_pm[0] =
"AM";
82 table._M_am_pm[1] =
"PM";
86#ifndef _STLP_NO_WCHAR_T
89 for (
i = 0;
i < 14; ++
i)
101 if (
table._M_time_format ==
"%T" ) {
102 table._M_time_format =
"%H:%M:%S";
103 }
else if (
table._M_time_format ==
"%r" ) {
104 table._M_time_format =
"%I:%M:%S %p";
105 }
else if (
table._M_time_format ==
"%R" ) {
106 table._M_time_format =
"%H:%M";
116 for (
i = 0;
i < 7; ++
i)
118 for (
i = 0;
i < 7; ++
i)
120 for (
i = 0;
i < 12; ++
i)
122 for (
i = 0;
i < 12; ++
i)
129#ifndef _STLP_NO_WCHAR_T
133 for (
i = 0;
i < 7; ++
i)
135 for (
i = 0;
i < 7; ++
i)
137 for (
i = 0;
i < 12; ++
i)
139 for (
i = 0;
i < 12; ++
i)
147template <
class _Ch,
class _TimeInfo>
151 const char * cp_end =
cp +
format.size();
152 while (
cp != cp_end) {
161 buf.append(1, *
cp++);
180#if defined (__GNUC__)
185# define __ISO_WEEK_START_WDAY 1
186# define __ISO_WEEK1_WDAY 4
187# define __YDAY_MINIMUM (-366)
188# define __TM_YEAR_BASE 1900
190__iso_week_days(
int yday,
int wday) {
192 int big_enough_multiple_of_7 = (-__YDAY_MINIMUM / 7 + 2) * 7;
194 - (yday - wday + __ISO_WEEK1_WDAY + big_enough_multiple_of_7) % 7
195 + __ISO_WEEK1_WDAY - __ISO_WEEK_START_WDAY);
198# define __is_leap(year)\
199 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
203#define __hour12(hour) \
204 (((hour) % 12 == 0) ? (12) : (hour) % 12)
206#if !defined (_STLP_USE_SAFE_STRING_FUNCTIONS)
207# define _STLP_SPRINTF sprintf
209# define _STLP_SPRINTF sprintf_s
212template <
class _Ch,
class _TimeInfo>
215 char format,
char modifier,
216 const _TimeInfo&
table,
const tm*
t) {
298 (
long)(
t->tm_wday == 0 ? (
t->tm_yday + 1) / 7 :
299 (
t->tm_yday + 8 -
t->tm_wday) / 7));
323 buf.append(1, ct.widen(
'%'));
326#if defined (__GNUC__)
328# if defined (_STLP_UNIX) && !defined (__linux__)
362 buf.append(1, ct.widen(
'\n'));
378 buf.append(1, ct.widen(
'\t'));
393 int year =
t->tm_year + __TM_YEAR_BASE;
394 int days = __iso_week_days (
t->tm_yday,
t->tm_wday);
398 days = __iso_week_days (
t->tm_yday + (365 + __is_leap (year)),
t->tm_wday);
401 int d = __iso_week_days (
t->tm_yday - (365 + __is_leap (year)),
t->tm_wday);
411 val = (
long)(year % 100 + 100) % 100;
425# if defined (_STLP_USE_GLIBC)
431# if defined (__USE_BSD) || defined (__BEOS__)
434 diff =
t->__tm_gmtoff;
437 buf.append(1, ct.widen(
'-'));
440 buf.append(1, ct.widen(
'+'));
455 char format,
char modifier,
460 char format,
char modifier,
466 char first, second, third;
526#ifndef _STLP_NO_WCHAR_T
554#if !defined (_STLP_NO_FORCE_INSTANTIATE)
558# ifndef _STLP_NO_WCHAR_T
std::map< E_MODULE, HMODULE > mod
#define _STLP_BASIC_IOSTRING(_CharT)
_Locale_time *_STLP_CALL __acquire_time(const char *&name, char *buf, _Locale_name_hint *, int *__err_code)
void _STLP_CALL __release_time(_Locale_time *__time)
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_null_name()
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_creation_failure(int __err_code, const char *name, const char *facet)
#define _STLP_ARRAY_AND_SIZE(A)
#define _STLP_MOVE_TO_STD_NAMESPACE
#define __CONST_CAST(__x, __y)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
#define _STLP_MOVE_TO_PRIV_NAMESPACE
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
const char * _Locale_pm_str(struct _Locale_time *)
const char * _Locale_t_fmt(struct _Locale_time *)
const char * _Locale_long_d_fmt(struct _Locale_time *)
const wchar_t * _WLocale_abbrev_monthname(struct _Locale_time *, int, wchar_t *, size_t)
#define _Locale_MAX_SIMPLE_NAME
const wchar_t * _WLocale_am_str(struct _Locale_time *, wchar_t *, size_t)
const char * _Locale_am_str(struct _Locale_time *)
const char * _Locale_abbrev_dayofweek(struct _Locale_time *, int)
const char * _Locale_long_d_t_fmt(struct _Locale_time *)
const wchar_t * _WLocale_full_monthname(struct _Locale_time *, int, wchar_t *, size_t)
const char * _Locale_abbrev_monthname(struct _Locale_time *, int)
const char * _Locale_full_monthname(struct _Locale_time *, int)
const char * _Locale_full_dayofweek(struct _Locale_time *, int)
const wchar_t * _WLocale_pm_str(struct _Locale_time *, wchar_t *, size_t)
const wchar_t * _WLocale_abbrev_dayofweek(struct _Locale_time *, int, wchar_t *, size_t)
const char * _Locale_d_t_fmt(struct _Locale_time *)
const char * _Locale_d_fmt(struct _Locale_time *)
const wchar_t * _WLocale_full_dayofweek(struct _Locale_time *, int, wchar_t *, size_t)
char *_STLP_CALL __write_integer(char *buf, ios_base::fmtflags flags, long x)
_Check_return_ wchar_t _Ch
_CRTIMP time_t __cdecl mktime(struct tm *_Tm)
static void _Init_timeinfo(_Time_Info &table)
const wchar_t default_wmonthname[][24]
const char default_monthname[][24]
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE const char default_dayname[][14]
static time_base::dateorder __get_date_order(_Locale_time *time)
const wchar_t default_wdayname[][14]
void _STLP_CALL __write_formatted_time(__iostring &buf, const ctype< char > &ct, char format, char modifier, const _Time_Info &table, const tm *t)
static void __append(__iostring &buf, const string &name)
void _STLP_CALL __write_formatted_timeT(_STLP_BASIC_IOSTRING(_Ch) &buf, const ctype< _Ch > &ct, char format, char modifier, const _TimeInfo &table, const tm *t)
static void _Init_timeinfo_base(_Time_Info_Base &table)
void __subformat(_STLP_BASIC_IOSTRING(_Ch) &buf, const ctype< _Ch > &ct, const string &format, const _TimeInfo &table, const tm *t)