@node gettime, time @subheading Syntax @example #include void gettime(struct time *); @end example @subheading Description This function gets the current time. The return structure is as follows: @example struct time @{ unsigned char ti_min; unsigned char ti_hour; unsigned char ti_hund; unsigned char ti_sec; @}; @end example @xref{settime}. @xref{getdate}. @subheading Return Value None. @subheading Portability @portability !ansi, !posix @subheading Example @example struct time t; gettime(&t); @end example