## Struct value_serializer<boost::posix_time::ptime>

zeep::value_serializer<boost::posix_time::ptime> — to_string/from_string for boost::posix_time::ptime boost::posix_time::ptime values are always assumed to be UTC

## Synopsis

    // In header: <zeep/value-serializer.hpp>

    struct value_serializer<boost::posix_time::ptime> {

      // public static functions
      static constexpr const char * type_name();
      static std::string to_string(const boost::posix_time::ptime &);
      static boost::posix_time::ptime from_string(const std::string &);
    };

## Description

### `value_serializer` public static functions

1.     static constexpr const char * type_name();

2.     static std::string to_string(const boost::posix_time::ptime & v);

   to_string the boost::posix_time::ptime as YYYY-MM-DDThh:mm:ssZ (zero UTC offset)

3.     static boost::posix_time::ptime from_string(const std::string & s);

   from_string according to ISO8601 rules. If Zulu time is specified, then the parsed xsd:dateTime is returned. If an UTC offset is present, then the offset is subtracted from the xsd:dateTime, this yields UTC. If no UTC offset is present, then the xsd:dateTime is assumed to be local time and converted to UTC.