|
bioformats
5.1.7
|
An ISO-8601 timestamp. More...
#include <ome/xml/model/primitives/Timestamp.h>
Public Types | |
| typedef boost::posix_time::ptime | value_type |
| POSIX time is the underlying time representation. | |
Public Member Functions | |
| Timestamp () | |
| Construct a Timestamp (defaults to current UTC time). | |
| Timestamp (const std::string &value) | |
| Construct a Timestamp from an ISO-8601 date string. More... | |
| Timestamp (value_type value) | |
| Construct a Timestamp from POSIX time. More... | |
| operator value_type () const | |
| Get the wrapped POSIX time value. More... | |
Private Attributes | |
| value_type | value |
| The POSIX time (at least microsecond precision). | |
An ISO-8601 timestamp.
The timestamp will have at least microsecond precision and, on systems where the Boost.Date_Time module has been compiled with support enabled, nanosecond precision.
| ome::xml::model::primitives::Timestamp::Timestamp | ( | const std::string & | value | ) |
Construct a Timestamp from an ISO-8601 date string.
| value | an ISO-8601-formatted string. |
| ome::xml::model::primitives::Timestamp::Timestamp | ( | value_type | value | ) |
Construct a Timestamp from POSIX time.
| value | the POSIX time. |
|
inline |
1.8.10