ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

Time

Functions

ULONGLONG __stdcall winx_str2time (char *string)
 Converts a formatted string to the time value in seconds.
int __stdcall winx_time2str (ULONGLONG time, char *buffer, int size)
 Converts a time value in seconds to the formatted string.

Function Documentation

ULONGLONG __stdcall winx_str2time ( char *  string  ) 

Converts a formatted string to the time value in seconds.

Parameters:
[in] string the formatted string to be converted. Format example: 3y 12d 4h 8m 37s.
Returns:
Time interval in seconds.

Definition at line 36 of file time.c.

int __stdcall winx_time2str ( ULONGLONG  time,
char *  buffer,
int  size 
)

Converts a time value in seconds to the formatted string.

Parameters:
[in] time the time interval, in seconds.
[out] buffer the storage for the resulting string.
[in] size the length of the buffer, in characters.
Returns:
The number of characters stored.
Note:
The time interval should not exceed 140 years (0xFFFFFFFF seconds), otherwise it will be truncated.

Definition at line 90 of file time.c.


Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2