PostGIS
3.1.6dev-r@@SVN_REVISION@@
◆
postgis_timetz2tm()
static int postgis_timetz2tm
(
TimeTzADT *
time
,
struct pg_tm *
tm
,
fsec_t *
fsec
,
int *
tzp
)
static
Definition at line
621
of file
lwgeom_out_geojson.c
.
622
{
623
TimeOffset trem = time->time;
624
625
tm->tm_hour = trem / USECS_PER_HOUR;
626
trem -= tm->tm_hour * USECS_PER_HOUR;
627
tm->tm_min = trem / USECS_PER_MINUTE;
628
trem -= tm->tm_min * USECS_PER_MINUTE;
629
tm->tm_sec = trem / USECS_PER_SEC;
630
*fsec = trem - tm->tm_sec * USECS_PER_SEC;
631
632
if
(tzp != NULL)
633
*tzp = time->zone;
634
635
return
0;
636
}
Referenced by
postgis_JsonEncodeDateTime()
.
Here is the caller graph for this function:
postgis
lwgeom_out_geojson.c
Generated by
1.9.1