PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ postgis_timetz2tm()

static int postgis_timetz2tm ( TimeTzADT *  time,
struct pg_tm *  tm,
fsec_t *  fsec,
int *  tzp 
)
static

Definition at line 626 of file lwgeom_out_geojson.c.

627 {
628  TimeOffset trem = time->time;
629 
630  tm->tm_hour = trem / USECS_PER_HOUR;
631  trem -= tm->tm_hour * USECS_PER_HOUR;
632  tm->tm_min = trem / USECS_PER_MINUTE;
633  trem -= tm->tm_min * USECS_PER_MINUTE;
634  tm->tm_sec = trem / USECS_PER_SEC;
635  *fsec = trem - tm->tm_sec * USECS_PER_SEC;
636 
637  if (tzp != NULL)
638  *tzp = time->zone;
639 
640  return 0;
641 }

Referenced by postgis_JsonEncodeDateTime().

Here is the caller graph for this function: