/* ftime.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */

#include <sys/timeb.h>
#include <time.h>
#include <emx/time.h>
#include <emx/syscalls.h>

void _ftime (struct timeb *ptr)
{
  time_t t_loc;

  if (!_tzset_flag) _tzset ();
  __ftime (ptr);
  t_loc = ptr->time;
  ptr->dstflag = _loc2gmt (&ptr->time, -1);
  ptr->timezone = (int)(ptr->time - t_loc) / 60;
}
