FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
drv_intl_gettimeformat.c
Go to the documentation of this file.
1
/* get localized short TIME format */
2
3
#include "../fb.h"
4
#include "
fb_private_intl.h
"
5
6
int
fb_DrvIntlGetTimeFormat
(
char
*
buffer
,
size_t
len )
7
{
8
DOS_COUNTRY_INFO_GENERAL
Info;
9
10
if
(
fb_hIntlGetInfo
( &Info ) ) {
11
switch
( Info.
time_format
) {
12
case
0:
13
if
( len >= 12 ) {
14
strcpy( buffer,
"hh:mm:ss tt"
);
15
return
TRUE
;
16
}
17
break
;
18
case
1:
19
if
( len >= 9 ) {
20
strcpy( buffer,
"HH:mm:ss"
);
21
return
TRUE
;
22
}
23
break
;
24
}
25
}
26
27
return
FALSE
;
28
}
rtlib
dos
drv_intl_gettimeformat.c
Generated on Thu Jan 23 2014 19:40:08 for FreeBASIC by
1.8.4