PLearn 0.1
|
#include "PDateTime.h"
#include <plearn/base/stringutils.h>
#include <plearn/base/lexical_cast.h>
#include <plearn/base/tostring.h>
#include "general.h"
Go to the source code of this file.
Namespaces | |
namespace | PLearn |
< for swap | |
Functions | |
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 ¤t, const PDateTime &past) |
Return the number of seconds between the two dates. |