Functor to convert ISO 8601 style date time value to a unix time stamp. More...
#include <qExpr.h>
Public Member Functions | |
virtual toUnixTime * | dup () const |
Duplicate thyself. Should follow deep-copy semantics. | |
virtual double | eval (double) const |
Evaluate the function on the given argument. | |
virtual void | printDecoration (std::ostream &) const |
Print the decoration on this function. | |
virtual void | printName (std::ostream &) const |
Print the name of this function. | |
toUnixTime (const char *z=0) | |
toUnixTime (const toUnixTime &rhs) | |
Functor to convert ISO 8601 style date time value to a unix time stamp.
The incoming value is expected to be in the format of YYYYMMDDhhmmss. If the fractinal part of the incoming argument is not zero, this fraction is transfered to the return values as the fraction as well. However, since strftime
does not print the fraction of a second, therefore, the user will have deal with the fractions of a second themselves.