MicrOS
gmtime.c File Reference
#include "../time.h"

Functions

tmgmtime (const time_t *timer)
 Convert time_t to tm as UTC time. More...
 

Variables

tm converted_time
 

Function Documentation

◆ gmtime()

tm* gmtime ( const time_t timer)

Convert time_t to tm as UTC time.

Uses the value pointed by timer to fill a tm structure with the values that represent the corresponding time, expressed as a UTC time (i.e., the time at the GMT timezone).

Parameters
timerPointer to an object of type time_t that contains a time value.
Returns
A pointer to a tm structure with its members filled with the values that correspond to the UTC time representation of timer.

Variable Documentation

◆ converted_time

tm converted_time