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
660
of file
lwgeom_out_geojson.c
.
661
{
662
TimeOffset trem = time->time;
663
664
tm->tm_hour = trem / USECS_PER_HOUR;
665
trem -= tm->tm_hour * USECS_PER_HOUR;
666
tm->tm_min = trem / USECS_PER_MINUTE;
667
trem -= tm->tm_min * USECS_PER_MINUTE;
668
tm->tm_sec = trem / USECS_PER_SEC;
669
*fsec = trem - tm->tm_sec * USECS_PER_SEC;
670
671
if
(tzp != NULL)
672
*tzp = time->zone;
673
674
return
0;
675
}
Referenced by
postgis_JsonEncodeDateTime()
.
Here is the caller graph for this function:
postgis
lwgeom_out_geojson.c
Generated by
1.9.1