vendor/parsedate/parsedate.cpp
static int checktz(const char *check)
{
  unsigned int i;
  const struct tzinfo *what;
  bool found = FALSE;

  what = tz;
  for(i = 0; i< sizeof(tz)/sizeof(tz[0]); i++) {
    if(strcasecompare(check, what->name)) {
      found = TRUE;
      break;
    }
    what++;
  }
  return found?what->offset*60:-1;
}
/* return the time zone offset between GMT and the input one, in number
   of seconds or -1 if the timezone wasn't found/legal */
return the time zone offset between GMT and the input one, in number
of seconds or -1 if the timezone wasn't found/legal
return the time zone offset between GMT and the input one in number of seconds or - 1 if the timezone wasn ' t found / legal
static int checktz(const char *check)
{
  unsigned int i;
  const struct tzinfo *what;
  bool found = FALSE;
  what = tz;
  for(i = 0; i< sizeof(tz)/sizeof(tz[0]); i++) {
    if(strcasecompare(check, what->name)) {
      found = TRUE;
      break;
    }
    what++;
  }
  return found?what->offset*60:-1;
}
static int checktz ( const char * check ) { unsigned int i ; const struct tzinfo * what ; bool found = FALSE ; what = tz ; for ( i = 0 ; i < sizeof ( tz ) / sizeof ( tz [ 0 ] ) ; i ++ ) { if ( strcasecompare ( check , what -> name ) ) { found = TRUE ; break ; } what ++ ; } return found ? what -> offset * 60 : -1 ; }
return the time zone offset between GMT and the input one, in number
of seconds or -1 if the timezone wasn't found/legal
return the time zone offset between GMT and the input one in number of seconds or - 1 if the timezone wasn ' t found / legal