Main Page | Modules | Data Structures | Data Fields

Time


Detailed Description

This little Time module has been added in order to provide optimized simple time related methods. Systems provide similar features but you are invited to use PEAK's ones instead.


Data Structures

struct  peak_time_date
 Gregorian date structure. More...


Functions

time_t peak_time (void)
 Get current time.

double peak_time_float (void)
 Get current time with precision.

peak_time_date peak_time_get_date (double t, peak_tz tz)
 Converts an Unix time value into a Gregorian date.


Function Documentation

time_t peak_time void   ) 
 

Get current time.

Returns:
The peak_time() function returns the value of time in seconds since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time (the "epoch").

double peak_time_float void   ) 
 

Get current time with precision.

Returns:
The peak_time_float() function returns the value of time in seconds since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time (the "epoch").

peak_time_date peak_time_get_date double  t,
peak_tz  tz
 

Converts an Unix time value into a Gregorian date.

Parameters:
t Unix time value in second. Pass the result of peak_time_float() to get current date.
tz Optional Time Zone reference. See peak_tz_create(). If provided, necessary time zone's conversions will be performed.
Returns:
The Gregorian date equivalent for the specified time value since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time (the "epoch").


Generated on Thu Jan 8 18:16:24 2004 for the PEAK Library by doxygen     SourceForge.net Logo