|
knowL: Knowledge Libraries
|
Public Member Functions | |
| Timestamp (NanoSeconds _ns) | |
| bool | isValid () const |
| knowCore::ReturnValue< QDateTime > | toQDateTime () const |
| QString | toRdfLiteral () const |
| template<typename _unit_ > | |
| ReturnValue< _unit_ > | toLocal () const |
| template<typename _unit_ > | |
| _unit_ | toEpoch () const |
| bool | operator< (const Timestamp &_rhs) const |
| bool | operator<= (const Timestamp &_rhs) const |
| bool | operator== (const Timestamp &_rhs) const |
| bool | operator!= (const Timestamp &_rhs) const |
| bool | operator> (const Timestamp &_rhs) const |
| bool | operator>= (const Timestamp &_rhs) const |
| Timestamp | operator+ (const Timestamp &_rhs) const |
| Timestamp & | operator+= (const Timestamp &_rhs) |
| Timestamp | operator- (const Timestamp &_rhs) const |
| Timestamp | operator* (const knowCore::BigNumber &_rhs) const |
| template<typename _unit_ > | |
| Timestamp | add (_unit_ _unit) const |
| template<typename _unit_ > | |
| _unit_ | intervalTo (const Timestamp &_time) const |
Static Public Member Functions | |
| static ReturnValue< Timestamp > | fromEpoch (const QuantityNumber &_quantity) |
| static ReturnValue< Timestamp > | fromRdfLiteral (const QString &_literal) |
| static Timestamp | endOfTime () |
| static Timestamp | originOfTime () |
| static Timestamp | now () |
| template<typename _unit_ > | |
| static ReturnValue< Timestamp > | fromLocal (_unit_ _value) |
|
template<typename _Period_ > requires details::is_ratio<_Period_>::value | |
| static Timestamp | fromEpoch (const std::chrono::duration< BigNumber, _Period_ > &_value) |
|
template<typename _Rep_ , typename _Period_ > requires (not std::is_same_v<_Rep_, knowCore::BigNumber> and details::is_ratio<_Period_>::value) | |
| static Timestamp | fromEpoch (const std::chrono::duration< _Rep_, _Period_ > &_value) |
| template<typename _unit_ > | |
| static Timestamp | fromEpoch (qint64 _value) |
| template<typename _unit_ > | |
| static Timestamp | fromEpoch (const knowCore::BigNumber &_value) |
| static Timestamp | from (const QDateTime &_time) |
|
static |
The end of time, aka infinite.
|
static |
Create a datetime from a quantity number. It will fails if _quantity is not expressed in a multiple of seconds.
| _unit_ knowCore::Timestamp::intervalTo | ( | const Timestamp & | _time | ) | const |
Compute the interval of time between the current time and one given in arguments _time.
|
static |
The origin of time, aka -infinite.
|
inline |
_unit_, which can be QuantityNumber or NanoSeconds or MilliSeconds...