|
Ananas Library 0.9.5
|
Сервисный класс для операций с датами. Подробнее...
#include <adateservice.h>
Открытые слоты | |
| bool | IsNull () const |
| Returns TRUE if the date is null; otherwise returns FALSE. A null date is invalid. . | |
| bool | IsValid () const |
| Returns TRUE if this date is valid; otherwise returns FALSE. . | |
| bool | IsValid (int y, int m, int d) |
| Returns TRUE if the specified date (year y, month m and day d) is valid; otherwise returns FALSE. . | |
| int | Year () const |
| Returns the year (1752..8000) of this date. . | |
| int | Month () const |
| Returns the month (January=1..December=12) of this date. . | |
| int | Day () const |
| Returns the day of the month (1..31) of this date. . | |
| int | DayOfWeek () const |
| Returns the weekday (Monday=1..Sunday=7) for this date. . | |
| int | DayOfYear () const |
| Returns the day of the year (1..365) for this date. . | |
| int | DaysInMonth () const |
| Returns the number of days in the month (28..31) for this date. . | |
| int | DaysInYear () const |
| Returns the number of days in the year (365 or 366) for this date. . | |
| int | WeekNumber () const |
| Returns the week number (1 to 53) for this date. | |
| QString | ToString (const QString &format=QString::null) const |
| Возвращает дату в виде строки. | |
| QDate | ToDate () const |
| Возвращает представление даты в объекте сласса QDate. . | |
| bool | SetYMD (int y, int m, int d) |
| Sets the date's year y, month m and day d. | |
| aDateService * | AddDays (int ndays) const |
| Returns a aDateService object containing a date ndays later than the date of this object (or earlier if ndays is negative). . | |
| aDateService * | AddMonths (int nmonths) const |
| Returns a aDateService object containing a date nmonths later than the date of this object (or earlier if nmonths is negative). . | |
| aDateService * | AddYears (int nyears) const |
| Возвращает объект класса aDateService содержащий дату на nyears лет позднее хранимой в объекте даты (или ранее, если nyears меньше нуля). . | |
| int | DaysTo (const aDateService &target) const |
| Возвращает количество дней до указанной даты от даты, представленной объектом. | |
| int | DaysTo (const QDate &target) const |
| Возвращает количество дней до указанной даты от даты, представленной объектом. | |
Открытые члены | |
| aDateService () | |
| Конструктор, который создает aDateService для работы в ананас скрипте. | |
| aDateService (int y, int m, int d) | |
| Конструктор, который создает aDateService для работы в ананас скрипте. . | |
| aDateService (const aDateService &) | |
| Конструктор, который создает aDateService для работы в ананас скрипте. . | |
| aDateService (const QDate &) | |
| Конструктор, который создает aDateService для работы в ананас скрипте. . | |
| ~aDateService () | |
| Деструктор . | |
Открытые члены унаследованные от AExtension | |
| AExtension (const char *name=0) | |
| virtual int | init (aDatabase *dbo) |
Защищенные данные | |
| QDate * | dateInstance |
Дополнительные унаследованные члены | |
Сигналы унаследованные от AExtension | |
| void | event (const QString &data) |
Открытые атрибуты унаследованные от AExtension | |
| aDatabase * | db |
Сервисный класс для операций с датами.
| aDateService::aDateService | ( | ) |
Конструктор, который создает aDateService для работы в ананас скрипте.
Используется в AddDays(), AddMonths() и AddYears().
| aDateService::aDateService | ( | int | y, |
| int | m, | ||
| int | d | ||
| ) |
Конструктор, который создает aDateService для работы в ананас скрипте. .
| aDateService::aDateService | ( | const aDateService & | d | ) |
Конструктор, который создает aDateService для работы в ананас скрипте. .
| aDateService::aDateService | ( | const QDate & | d | ) |
Конструктор, который создает aDateService для работы в ананас скрипте. .
| aDateService::~aDateService | ( | ) |
Деструктор .
|
slot |
Returns a aDateService object containing a date ndays later than the date of this object (or earlier if ndays is negative). .
Перекрестные ссылки aDateService(), Day(), Month() и Year().
|
slot |
Returns a aDateService object containing a date nmonths later than the date of this object (or earlier if nmonths is negative). .
Перекрестные ссылки aDateService(), Day(), Month() и Year().
|
slot |
Возвращает объект класса aDateService содержащий дату на nyears лет позднее хранимой в объекте даты (или ранее, если nyears меньше нуля). .
Перекрестные ссылки aDateService(), Day(), Month() и Year().
|
slot |
Returns the day of the month (1..31) of this date. .
Используется в aDateService(), AddDays(), AddMonths(), AddYears(), DaysTo() и ToDate().
|
slot |
Returns the weekday (Monday=1..Sunday=7) for this date. .
|
slot |
Returns the day of the year (1..365) for this date. .
|
slot |
Returns the number of days in the month (28..31) for this date. .
|
slot |
Returns the number of days in the year (365 or 366) for this date. .
|
slot |
|
slot |
|
slot |
Returns TRUE if the date is null; otherwise returns FALSE. A null date is invalid.
.
|
slot |
Returns TRUE if this date is valid; otherwise returns FALSE. .
|
slot |
Returns TRUE if the specified date (year y, month m and day d) is valid; otherwise returns FALSE. .
|
slot |
Returns the month (January=1..December=12) of this date. .
Используется в aDateService(), AddDays(), AddMonths(), AddYears(), DaysTo() и ToDate().
|
slot |
Sets the date's year y, month m and day d.
|
slot |
|
slot |
Возвращает дату в виде строки.
|
slot |
Returns the week number (1 to 53) for this date.
|
slot |
Returns the year (1752..8000) of this date. .
Используется в aDateService(), AddDays(), AddMonths(), AddYears(), DaysTo() и ToDate().