Back to index

lightning-sunbird  0.9+nobinonly
nsAboutCache.cpp File Reference
#include "nsAboutCache.h"
#include "nsIIOService.h"
#include "nsIServiceManager.h"
#include "nsIInputStream.h"
#include "nsIStorageStream.h"
#include "nsISimpleEnumerator.h"
#include "nsXPIDLString.h"
#include "nsIURI.h"
#include "nsCOMPtr.h"
#include "nsNetUtil.h"
#include "prtime.h"
#include "nsEscape.h"
#include "nsICacheService.h"

Go to the source code of this file.


static PRTime SecondsToPRTime (PRUint32 t_sec)
static void PrintTimeString (char *buf, PRUint32 bufsize, PRUint32 t_sec)

Function Documentation

static void PrintTimeString ( char *  buf,
PRUint32  bufsize,
PRUint32  t_sec 
) [static]

Definition at line 64 of file nsAboutCache.cpp.

    PRExplodedTime et;
    PRTime t_usec = SecondsToPRTime(t_sec);
    PR_ExplodeTime(t_usec, PR_LocalTimeParameters, &et);
    PR_FormatTime(buf, bufsize, "%Y-%m-%d %H:%M:%S", &et);

Here is the call graph for this function:

static PRTime SecondsToPRTime ( PRUint32  t_sec) [static]

Definition at line 56 of file nsAboutCache.cpp.

    PRTime t_usec, usec_per_sec;
    LL_I2L(t_usec, t_sec);
    LL_I2L(usec_per_sec, PR_USEC_PER_SEC);
    LL_MUL(t_usec, t_usec, usec_per_sec);
    return t_usec;

Here is the caller graph for this function: