version 3.19.0

PIMathVectorT subvector methods
PISystemTime::isNull()
PISystemTime::Frequency::isNull()
PISystemTime::toString()
PISystemTime::fromString()
PIVariant can handle strings with PISystemTime
PIDateTime::toSystemTime() now returns null time from invalid strings
This commit is contained in:
2024-05-05 00:17:52 +03:00
parent a86e8f7b58
commit 491d89f117
9 changed files with 234 additions and 7 deletions

View File

@@ -29,6 +29,51 @@
#include "pisystemtime.h"
//! \~\brief
//! \~english PISystemTime from days
//! \~russian PISystemTime из дней
inline PISystemTime operator""_d(long double v) {
return PISystemTime::fromSeconds(v * 60. * 60. * 24.);
}
//! \~\brief
//! \~english PISystemTime from days
//! \~russian PISystemTime из дней
inline PISystemTime operator""_d(unsigned long long v) {
return PISystemTime::fromSeconds(v * 60. * 60. * 24.);
}
//! \~\brief
//! \~english PISystemTime from hours
//! \~russian PISystemTime из часов
inline PISystemTime operator""_h(long double v) {
return PISystemTime::fromSeconds(v * 60. * 60.);
}
//! \~\brief
//! \~english PISystemTime from hours
//! \~russian PISystemTime из часов
inline PISystemTime operator""_h(unsigned long long v) {
return PISystemTime::fromSeconds(v * 60. * 60.);
}
//! \~\brief
//! \~english PISystemTime from minutes
//! \~russian PISystemTime из минут
inline PISystemTime operator""_m(long double v) {
return PISystemTime::fromSeconds(v * 60.);
}
//! \~\brief
//! \~english PISystemTime from minutes
//! \~russian PISystemTime из минут
inline PISystemTime operator""_m(unsigned long long v) {
return PISystemTime::fromSeconds(v * 60.);
}
//! \~\brief
//! \~english PISystemTime from seconds
//! \~russian PISystemTime из секунд