Analizo
view release on metacpan or search on metacpan
t/samples/kdelibs/daterange.h view on Meta::CPAN
/**
* \return A DateRange which includes all days of the current year.
* \sa DateRangeFlag
*/
static DateRange thisYear( DateRangeFlags flags = NoDateRangeFlags );
/**
* \param flags ExcludeFutureDays does only makes sense for a date in the current year. For
* future years it is ignored.
* \return A DateRange which includes all days of the year in which
* \p date falls.
* \sa DateRangeFlags
*/
static DateRange yearOf( const QDate& date, DateRangeFlags flags = NoDateRangeFlags );
/**
* \return A DateRange which spans the last \p n days.
*/
static DateRange lastNDays( int n );
/**
* \return A DateRange which spans the last \p n weeks,
* including the already passed days in the current week.
*/
static DateRange lastNWeeks( int n );
/**
* \return A DateRange which spans the last \p n months,
* including the already passed days in the current month.
*/
static DateRange lastNMonths( int n );
private:
class Private;
QSharedDataPointer<Private> d;
};
/**
* Comparison operator
*
* \related DateRange
*/
bool operator==( const DateRange& r1, const DateRange& r2 );
/**
* Comparison operator
*
* \related DateRange
*/
bool operator!=( const DateRange& r1, const DateRange& r2 );
/**
* Allows using DateRange in hashed structures such as QHash or QMap.
*
* \related DateRange
*/
uint qHash( const DateRange& range );
/**
* Debug streaming operator
*
* \relates DateRange
*/
QDebug operator<<( QDebug dbg, const DateRange& range );
Q_DECLARE_OPERATORS_FOR_FLAGS( DateRange::DateRangeFlags )
#endif
( run in 1.107 second using v1.01-cache-2.11-cpan-5511b514fd6 )