Vault  4.1
Classes | Typedefs | Functions
vinstant.h File Reference
#include "vtypes.h"
#include "vstring.h"

Go to the source code of this file.

Classes

class  VDuration
 A VDuration is a length of time. More...
class  VInstantStruct
 This structure is passed to or returned by the core functions to describe a calendar structured instant in some implied time zone. More...
class  IVRemoteTimeZoneConverter
 You can provide a callback interface for VInstant to allow for converting to and from "remote time zones" (RTZ). More...
class  VInstant
 A VInstant is an object that represents an instant in time regardless of the location (and time zone) of where code is running. More...
class  VDate
 VDate represents a calendar date: a year/month/day. More...
class  VTimeOfDay
 VTimeOfDay represents a time of day without understanding about calendars or time zones; it is simply an hour/minute/second container. More...
class  VDateAndTime
 VDateAndTime simply aggregates a VDate and a VTimeOfDay into one convenient object. More...
class  VInstantFormatterLocaleInfo
 This class holds a set of locale-specific text and other information used when formatting VInstant time stamp strings. More...
class  VInstantFormatter
 This class describes how a VInstant should be formatted as a string. More...

Typedefs

typedef std::vector< VDurationVDurationVector
 VDurationVector is simply a vector of VDuration objects.
typedef std::vector< VInstantVInstantVector
 VInstantVector is simply a vector of VInstant objects.

Functions

bool operator== (const VDuration &lhs, const VDuration &rhs)
bool operator!= (const VDuration &lhs, const VDuration &rhs)
bool operator< (const VDuration &lhs, const VDuration &rhs)
bool operator<= (const VDuration &lhs, const VDuration &rhs)
bool operator>= (const VDuration &lhs, const VDuration &rhs)
bool operator> (const VDuration &lhs, const VDuration &rhs)
VDuration operator+ (const VDuration &d1, const VDuration &d2)
VDuration operator- (const VDuration &d1, const VDuration &d2)
VDuration operator* (Vs64 multiplier, const VDuration &d)
VDuration operator* (const VDuration &d, Vs64 multiplier)
bool operator== (const VInstant &lhs, const VInstant &rhs)
bool operator!= (const VInstant &lhs, const VInstant &rhs)
bool operator< (const VInstant &lhs, const VInstant &rhs)
bool operator<= (const VInstant &lhs, const VInstant &rhs)
bool operator>= (const VInstant &lhs, const VInstant &rhs)
bool operator> (const VInstant &lhs, const VInstant &rhs)
VDuration operator- (const VInstant &i1, const VInstant &i2)
VInstant operator+ (const VInstant &i1, const VDuration &forwardDuration)
VInstant operator- (const VInstant &i1, const VDuration &backwardDuration)
bool operator== (const VDate &lhs, const VDate &rhs)
bool operator!= (const VDate &lhs, const VDate &rhs)
bool operator< (const VDate &lhs, const VDate &rhs)
bool operator<= (const VDate &lhs, const VDate &rhs)
bool operator>= (const VDate &lhs, const VDate &rhs)
bool operator> (const VDate &lhs, const VDate &rhs)
bool operator== (const VTimeOfDay &t1, const VTimeOfDay &t2)
bool operator== (const VDateAndTime &dt1, const VDateAndTime &dt2)

Detailed Description

Definition in file vinstant.h.


Typedef Documentation

typedef std::vector<VDuration> VDurationVector

VDurationVector is simply a vector of VDuration objects.

Note that the vector elements are objects, not pointers to objects.

Definition at line 254 of file vinstant.h.

typedef std::vector<VInstant> VInstantVector

VInstantVector is simply a vector of VInstant objects.

Note that the vector elements are objects, not pointers to objects.

Definition at line 948 of file vinstant.h.


Function Documentation

VDuration operator- ( const VInstant i1,
const VInstant i2 
) [inline]
Parameters:
i1an instant
i2an instant
Returns:
i1 - i2 as a VDuration

Definition at line 938 of file vinstant.h.

References VDuration::MILLISECOND().

VInstant operator+ ( const VInstant i1,
const VDuration forwardDuration 
) [inline]
Parameters:
i1an instant
forwardDurationthe duration to add
Returns:
the result of i1+forwardDuration

Definition at line 939 of file vinstant.h.

VInstant operator- ( const VInstant i1,
const VDuration backwardDuration 
) [inline]
Parameters:
i1an instant
backwardDurationthe duration to subtract to add
Returns:
the result of i1-backwardDuration

Definition at line 940 of file vinstant.h.


Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.