matime.h File Reference


Detailed Description

Time management.

Time values are defined as seconds elapsed from midnight, January 1, 1970.


Classes

struct  tm

Typedefs

typedef int time_t

Functions

tmsplit_time (time_t timer, struct tm *tim_p)
char * sprint_tm (const struct tm *tim_p, char *buf)
char * sprint_time (time_t timer)
time_t mktime (struct tm *tim_p)


Typedef Documentation

typedef int time_t
 


Function Documentation

struct tm* split_time time_t  timer,
struct tm tim_p
 

Converts a time value to the structure pointed to by tim_p.

Returns:
The tim_p argument.
See also:
maTime, maLocalTime

char* sprint_tm const struct tm tim_p,
char *  buf
 

Converts a tm structure to the ascii string buffer pointed to by buf. The buffer must be at least 25 bytes long.

Returns:
The buf argument.

char* sprint_time time_t  timer  ) 
 

Converts a time value to a statically allocated string.

Returns:
A pointer to the string.
See also:
maTime, maLocalTime

time_t mktime struct tm tim_p  ) 
 

Converts the structure pointed to by tim_p into a time value.

See also:
maTime, maLocalTime


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO