FreeBASIC  0.91.0
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 {
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 }