Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsTime.h File Reference
#include "prtime.h"
#include "nsInt64.h"
#include "nscore.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsTime
 This class encapsulates full 64-bit time functionality and provides simple arithmetic and conversion operations. More...

Functions

const PRBool operator< (const nsTime &aTime1, const nsTime &aTime2)
 Determine if one time is strictly less than another.
const PRBool operator<= (const nsTime &aTime1, const nsTime &aTime2)
 Determine if one time is less than or equal to another.
const PRBool operator> (const nsTime &aTime1, const nsTime &aTime2)
 Determine if one time is strictly greater than another.
const PRBool operator>= (const nsTime &aTime1, const nsTime &aTime2)
 Determine if one time is greater than or equal to another.

Function Documentation

const PRBool operator< ( const nsTime aTime1,
const nsTime aTime2 
) [inline]

Determine if one time is strictly less than another.

Definition at line 115 of file nsTime.h.

                                                       {
    return aTime1.mValue < aTime2.mValue;
}
const PRBool operator<= ( const nsTime aTime1,
const nsTime aTime2 
) [inline]

Determine if one time is less than or equal to another.

Definition at line 123 of file nsTime.h.

                                                        {
    return aTime1.mValue <= aTime2.mValue;
}
const PRBool operator> ( const nsTime aTime1,
const nsTime aTime2 
) [inline]

Determine if one time is strictly greater than another.

Definition at line 131 of file nsTime.h.

                                                       {
    return aTime1.mValue > aTime2.mValue;
}
const PRBool operator>= ( const nsTime aTime1,
const nsTime aTime2 
) [inline]

Determine if one time is greater than or equal to another.

Definition at line 139 of file nsTime.h.

                                                        {
    return aTime1.mValue >= aTime2.mValue;
}