Classes | Defines | Typedefs | Functions

prtime.h File Reference

#include "prlong.h"
Include dependency graph for prtime.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  PRTimeParameters
struct  PRExplodedTime

Defines

#define PR_MSEC_PER_SEC   1000UL
#define PR_USEC_PER_SEC   1000000UL
#define PR_NSEC_PER_SEC   1000000000UL
#define PR_USEC_PER_MSEC   1000UL
#define PR_NSEC_PER_MSEC   1000000UL

Typedefs

typedef PRInt64 PRTime
typedef struct PRTimeParameters PRTimeParameters
typedef struct PRExplodedTime PRExplodedTime
typedef PRTimeParameters(* PRTimeParamFn )(const PRExplodedTime *gmt)

Functions

PRTime PR_Now (void)
void PR_ExplodeTime (PRTime usecs, PRTimeParamFn params, PRExplodedTime *exploded)
PRTime PR_ImplodeTime (const PRExplodedTime *exploded)
void PR_NormalizeTime (PRExplodedTime *exploded, PRTimeParamFn params)
PRTimeParameters PR_LocalTimeParameters (const PRExplodedTime *gmt)
PRTimeParameters PR_GMTParameters (const PRExplodedTime *gmt)
PRTimeParameters PR_USPacificTimeParameters (const PRExplodedTime *gmt)
PRStatus PR_ParseTimeStringToExplodedTime (const char *string, PRBool default_to_gmt, PRExplodedTime *result)
PRStatus PR_ParseTimeString (const char *string, PRBool default_to_gmt, PRTime *result)
PRUint32 PR_FormatTime (char *buf, int buflen, const char *fmt, const PRExplodedTime *tm)
PRUint32 PR_FormatTimeUSEnglish (char *buf, PRUint32 bufSize, const char *format, const PRExplodedTime *tm)

Define Documentation

#define PR_MSEC_PER_SEC   1000UL
#define PR_NSEC_PER_MSEC   1000000UL
#define PR_NSEC_PER_SEC   1000000000UL
#define PR_USEC_PER_MSEC   1000UL
#define PR_USEC_PER_SEC   1000000UL

Typedef Documentation

typedef PRInt64 PRTime

Function Documentation

void PR_ExplodeTime ( PRTime  usecs,
PRTimeParamFn  params,
PRExplodedTime exploded 
)
PRUint32 PR_FormatTime ( char *  buf,
int  buflen,
const char *  fmt,
const PRExplodedTime tm 
)
PRUint32 PR_FormatTimeUSEnglish ( char *  buf,
PRUint32  bufSize,
const char *  format,
const PRExplodedTime tm 
)
PRTimeParameters PR_GMTParameters ( const PRExplodedTime gmt  ) 
PRTime PR_ImplodeTime ( const PRExplodedTime exploded  ) 
PRTimeParameters PR_LocalTimeParameters ( const PRExplodedTime gmt  ) 
void PR_NormalizeTime ( PRExplodedTime exploded,
PRTimeParamFn  params 
)
PRTime PR_Now ( void   ) 
PRStatus PR_ParseTimeString ( const char *  string,
PRBool  default_to_gmt,
PRTime result 
)
PRStatus PR_ParseTimeStringToExplodedTime ( const char *  string,
PRBool  default_to_gmt,
PRExplodedTime result 
)
PRTimeParameters PR_USPacificTimeParameters ( const PRExplodedTime gmt  )