PLearn 0.1
Classes | Namespaces | Defines | Functions
PDateTime.h File Reference
#include <iostream>
#include <string>
Include dependency graph for PDateTime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PLearn::PDateTime

Namespaces

namespace  PLearn
 

< for swap


Defines

#define SECONDS_PER_DAY   86400

Functions

double PLearn::operator- (const PDateTime &to_date, const PDateTime &from_date)
 subtract two dates, the result being counted in days (+ fractions)
ostream & PLearn::operator<< (ostream &os, const PDateTime &date)
double PLearn::datetime_to_double (const PDateTime &t)
 converts date/time to double: for example: September 29 1972: 720929; December 25 2002: 1021225.
PDateTime PLearn::double_to_datetime (double f)
double PLearn::hhmmss_to_double (int hh, int mm, int ss)
 converts an hours/minutes/seconds to a day fraction
void PLearn::double_to_hhmmss (double fraction, int &hh, int &mm, int &ss)
 convert a day fraction (< 1) to hours/minutes/seconds
int PLearn::delta_seconds (const PDateTime &current, const PDateTime &past)
 Return the number of seconds between the two dates.

Detailed Description

Definition in file PDateTime.h.


Define Documentation

#define SECONDS_PER_DAY   86400

Definition at line 51 of file PDateTime.h.

Referenced by PLearn::delta_seconds().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines