BRL-CAD
time64.h File Reference
#include "common.h"
#include <time.h>
#include "time64_config.h"
Include dependency graph for time64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TM64
 

Macros

#define Y2038_EXPORT
 
#define TM   tm
 
#define LOCALTIME_R(clock, result)   fake_localtime_r(clock, result)
 
#define GMTIME_R(clock, result)   fake_gmtime_r(clock, result)
 
#define TM64_ASCTIME_FORMAT   "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"
 

Typedefs

typedef INT_64_T Time64_T
 
typedef INT_64_T Year
 

Functions

Y2038_EXPORT struct TMgmtime64_r (const Time64_T *, struct TM *)
 
Y2038_EXPORT struct TMlocaltime64_r (const Time64_T *, struct TM *)
 
Y2038_EXPORT struct TMgmtime64 (const Time64_T *)
 
Y2038_EXPORT struct TMlocaltime64 (const Time64_T *)
 
Y2038_EXPORT char * asctime64 (const struct TM *)
 
Y2038_EXPORT char * asctime64_r (const struct TM *, char *)
 
Y2038_EXPORT char * ctime64 (const Time64_T *)
 
Y2038_EXPORT char * ctime64_r (const Time64_T *, char *)
 
Y2038_EXPORT Time64_T timegm64 (const struct TM *)
 
Y2038_EXPORT Time64_T mktime64 (struct TM *)
 
Y2038_EXPORT Time64_T timelocal64 (struct TM *)
 

Macro Definition Documentation

#define Y2038_EXPORT

Definition at line 14 of file time64.h.

#define TM   tm

Definition at line 52 of file time64.h.

Referenced by ctime64_r(), localtime64_r(), and mktime64().

#define LOCALTIME_R (   clock,
  result 
)    fake_localtime_r(clock, result)

Definition at line 76 of file time64.h.

Referenced by localtime64_r().

#define GMTIME_R (   clock,
  result 
)    fake_gmtime_r(clock, result)

Definition at line 81 of file time64.h.

Referenced by gmtime64_r().

#define TM64_ASCTIME_FORMAT   "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"

Definition at line 89 of file time64.h.

Referenced by asctime64_r().

Typedef Documentation

typedef INT_64_T Time64_T

Definition at line 24 of file time64.h.

typedef INT_64_T Year

Definition at line 25 of file time64.h.

Function Documentation

Y2038_EXPORT struct TM* gmtime64_r ( const Time64_T ,
struct TM  
)

Definition at line 614 of file time64.c.

References CHEAT_DAYS, CHEAT_YEARS, copy_tm_to_TM64(), days_in_gregorian_cycle, GMTIME_R, IS_LEAP, SHOULD_USE_SYSTEM_GMTIME, and WRAP.

Referenced by gmtime64(), and localtime64_r().

Here is the call graph for this function:

Y2038_EXPORT struct TM* localtime64_r ( const Time64_T ,
struct TM  
)

Definition at line 741 of file time64.c.

References copy_tm_to_TM64(), gmtime64_r(), IS_LEAP, LOCALTIME_R, SHOULD_USE_SYSTEM_LOCALTIME, TIME64_TRACE1, TIME64_TRACE2, timegm64(), and TM.

Referenced by ctime64_r(), and localtime64().

Here is the call graph for this function:

Y2038_EXPORT struct TM* gmtime64 ( const Time64_T )

Definition at line 878 of file time64.c.

References gmtime64_r().

Referenced by bu_utctime().

Here is the call graph for this function:

Y2038_EXPORT struct TM* localtime64 ( const Time64_T )

Definition at line 873 of file time64.c.

References localtime64_r().

Referenced by ctime64().

Here is the call graph for this function:

Y2038_EXPORT char* asctime64 ( const struct TM )

Definition at line 882 of file time64.c.

References asctime64_r().

Referenced by ctime64().

Here is the call graph for this function:

Y2038_EXPORT char* asctime64_r ( const struct TM ,
char *   
)

Definition at line 846 of file time64.c.

References TM64_ASCTIME_FORMAT, valid_tm_mon(), and valid_tm_wday().

Referenced by asctime64(), and ctime64_r().

Here is the call graph for this function:

Y2038_EXPORT char* ctime64 ( const Time64_T )

Definition at line 886 of file time64.c.

References asctime64(), and localtime64().

Here is the call graph for this function:

Y2038_EXPORT char* ctime64_r ( const Time64_T ,
char *   
)

Definition at line 863 of file time64.c.

References asctime64_r(), localtime64_r(), memset(), and TM.

Here is the call graph for this function:

Y2038_EXPORT Time64_T timegm64 ( const struct TM )

Definition at line 279 of file time64.c.

References days_in_gregorian_cycle, IS_LEAP, and TIME64_TRACE3.

Referenced by localtime64_r().

Y2038_EXPORT Time64_T mktime64 ( struct TM )

Definition at line 568 of file time64.c.

References copy_TM64_to_tm(), copy_tm_to_TM64(), date_in_safe_range(), initialize_mktime_maxmin(), and TM.

Referenced by timelocal64().

Here is the call graph for this function:

Y2038_EXPORT Time64_T timelocal64 ( struct TM )

Definition at line 609 of file time64.c.

References mktime64().

Here is the call graph for this function: