PostGIS  3.7.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 701 of file lwgeom_out_geojson.c.

702 {
703  TimeOffset trem = time->time;
704 
705  tm->tm_hour = trem / USECS_PER_HOUR;
706  trem -= tm->tm_hour * USECS_PER_HOUR;
707  tm->tm_min = trem / USECS_PER_MINUTE;
708  trem -= tm->tm_min * USECS_PER_MINUTE;
709  tm->tm_sec = trem / USECS_PER_SEC;
710  *fsec = trem - tm->tm_sec * USECS_PER_SEC;
711 
712  if (tzp != NULL)
713  *tzp = time->zone;
714 
715  return 0;
716 }

Referenced by postgis_JsonEncodeDateTime().

Here is the caller graph for this function: