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:
@@ -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 из секунд
|
||||
|
||||
Reference in New Issue
Block a user