paludis Version 3.0.2
The one true package mangler
paludis::Timestamp Class Reference

#include <timestamp.hh>

Inheritance diagram for paludis::Timestamp:

Public Member Functions

 Timestamp (const struct timespec &)
 Timestamp (const time_t, const long)
 Timestamp (const Timestamp &)
Timestamp & operator= (const Timestamp &)
bool operator== (const Timestamp &) const PALUDIS_ATTRIBUTE((warn_unused_result))
bool operator< (const Timestamp &) const PALUDIS_ATTRIBUTE((warn_unused_result))
time_t seconds () const PALUDIS_ATTRIBUTE((warn_unused_result))
long nanoseconds () const PALUDIS_ATTRIBUTE((warn_unused_result))
struct timespec as_timespec () const PALUDIS_ATTRIBUTE((warn_unused_result))
struct timeval as_timeval () const PALUDIS_ATTRIBUTE((warn_unused_result))

Static Public Member Functions

static Timestamp now () PALUDIS_ATTRIBUTE((warn_unused_result))

Detailed Description

Wrapper class to simplify dealing with the zillion different ways C has of dealing with timestamps.

Most definitely not for use for durations (that is, the difference between two date-times).

Since
0.44

The documentation for this class was generated from the following file: