PostGIS 3.7.0dev-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 697 of file lwgeom_out_geojson.c.

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

Referenced by postgis_JsonEncodeDateTime().

Here is the caller graph for this function: