PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ postgis_timetz2tm()

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

Definition at line 605 of file lwgeom_out_geojson.c.

606{
607 TimeOffset trem = time->time;
608
609 tm->tm_hour = trem / USECS_PER_HOUR;
610 trem -= tm->tm_hour * USECS_PER_HOUR;
611 tm->tm_min = trem / USECS_PER_MINUTE;
612 trem -= tm->tm_min * USECS_PER_MINUTE;
613 tm->tm_sec = trem / USECS_PER_SEC;
614 *fsec = trem - tm->tm_sec * USECS_PER_SEC;
615
616 if (tzp != NULL)
617 *tzp = time->zone;
618
619 return 0;
620}

Referenced by postgis_JsonEncodeDateTime().

Here is the caller graph for this function: