PLearn 0.1
|
#include <string>
#include <ctime>
#include <plearn/io/PStream.h>
#include <plearn/base/TypeTraits.h>
Go to the source code of this file.
Classes | |
class | PLearn::PDate |
class | PLearn::TypeTraits< PDate > |
Namespaces | |
namespace | PLearn |
< for swap | |
Functions | |
int | PLearn::operator- (const PDate &to_date, const PDate &from_date) |
substract two dates, the result being counted in days. | |
PDate | PLearn::operator+ (const PDate &pdate, int ndays) |
add a number of days | |
PDate | PLearn::operator- (const PDate &pdate, int ndays) |
subtract a number of days add a number of days | |
ostream & | PLearn::operator<< (ostream &os, const PDate &date) |
PStream & | PLearn::operator<< (PStream &out, const PDate &date) |
Serialization to PStream. | |
PStream & | PLearn::operator>> (PStream &in, PDate &date) |
De-serialization from PStream. | |
int | PLearn::add_months_to_date (int xyymmdd, int nmonths) |
Takes a date (in cyymmdd or yyyymmdd format) and adds the given number of months (may be negative) Returns result in same format. | |
float | PLearn::date_to_float (const PDate &t) |
Converts date to float: ex: September 29 1972: 720929; December 25 2002: 1021225 Also converts missing date to missing float value and vice-versa. | |
PDate | PLearn::float_to_date (float f) |
PDate | PLearn::float_to_date (double d) |
double | PLearn::date_to_double (const PDate &t) |
Converts date to double: ex: September 29 1972: 720929; December 25 2002: 20021225 Also converts missing date to missing double value and vice-versa. | |
PDate | PLearn::double_to_date (double d) |
Definition in file PDate.h.