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

◆ postgis_time2tm()

static int postgis_time2tm ( TimeADT  time,
struct pg_tm *  tm,
fsec_t *  fsec 
)
static

Definition at line 592 of file lwgeom_out_geojson.c.

593{
594 tm->tm_hour = time / USECS_PER_HOUR;
595 time -= tm->tm_hour * USECS_PER_HOUR;
596 tm->tm_min = time / USECS_PER_MINUTE;
597 time -= tm->tm_min * USECS_PER_MINUTE;
598 tm->tm_sec = time / USECS_PER_SEC;
599 time -= tm->tm_sec * USECS_PER_SEC;
600 *fsec = time;
601 return 0;
602}

Referenced by postgis_JsonEncodeDateTime().

Here is the caller graph for this function: