/haiku/src/preferences/time/ |
H A D | BaseView.cpp | 75 BDate date = dateTime.Date(); in ChangeTime() local 78 day = date.Day(); in ChangeTime() 82 year = date.Year(); in ChangeTime() 86 month = date.Month(); in ChangeTime() 88 date.SetDate(year, month, day); in ChangeTime() 89 dateTime.SetDate(date); in ChangeTime() 101 BDate date = BDate::CurrentDate(B_LOCAL_TIME); in _SendNotices() local 102 fMessage.AddInt32("day", date.Day()); in _SendNotices() 103 fMessage.AddInt32("year", date.Year()); in _SendNotices() 104 fMessage.AddInt32("month", date.Month()); in _SendNotices()
|
H A D | DateTimeView.cpp | 157 BDate date = dateTime.Date(); in _Revert() local 159 date.SetDate(timeInfo->tm_year + 1900, timeInfo->tm_mon + 1, in _Revert() 162 dateTime.SetDate(date); in _Revert()
|
/haiku/src/kits/support/ |
H A D | DateTime.cpp | 572 BDate::IsValid(const BDate& date) in IsValid() argument 574 return IsValid(date.fYear, date.fMonth, date.fDay); in IsValid() 627 BDate::SetDate(const BDate& date) in SetDate() argument 629 return _SetDate(date.fYear, date.fMonth, date.fDay); in SetDate() 772 BDate::Difference(const BDate& date) const in Difference() 774 return date.DateToJulianDay() - DateToJulianDay(); in Difference() 1083 BDate date; in JulianDayToDate() local 1095 date.fYear = ((j / 146097) * 400 + c * 100 + (dc / 1461) * 4 + a) in JulianDayToDate() 1097 date.fMonth = (m + 2) % 12 + 1; in JulianDayToDate() 1098 date.fDay = int32((da - (m + 4) * 153 / 5 + 122) + 1.5); in JulianDayToDate() [all …]
|
/haiku/src/kits/shared/ |
H A D | CalendarView.cpp | 435 BDate date(fDate); in KeyDown() local 436 date.AddMonths(-1); in KeyDown() 437 SetDate(date); in KeyDown() 445 BDate date(fDate); in KeyDown() local 446 date.AddMonths(1); in KeyDown() 447 SetDate(date); in KeyDown() 559 BDate date = Date(); in SetDay() local 560 date.SetDay(day); in SetDay() 561 if (!date.IsValid()) in SetDay() 563 SetDate(date); in SetDay() [all …]
|
/haiku/src/apps/deskbar/ |
H A D | CalendarMenuWindow.cpp | 206 BDate date = fCalendarView->Date(); in MessageReceived() local 207 date.AddMonths(kMonthDownMessage == message->what ? -1 : 1); in MessageReceived() 208 _UpdateDate(date); in MessageReceived() 215 BDate date = fCalendarView->Date(); in MessageReceived() local 216 date.AddYears(kYearDownMessage == message->what ? -1 : 1); in MessageReceived() 217 _UpdateDate(date); in MessageReceived() 229 CalendarMenuWindow::_UpdateDate(const BDate& date) in _UpdateDate() argument 231 if (!date.IsValid()) in _UpdateDate() 234 fCalendarView->SetDate(date); in _UpdateDate() 237 text << date.Year(); in _UpdateDate() [all …]
|
/haiku/headers/os/support/ |
H A D | DateTime.h | 102 static bool IsValid(const BDate& date); 109 bool SetDate(const BDate& date); 122 int32 Difference(const BDate& date) const; 153 bool operator!=(const BDate& date) const; 154 bool operator==(const BDate& date) const; 156 bool operator<(const BDate& date) const; 157 bool operator<=(const BDate& date) const; 159 bool operator>(const BDate& date) const; 160 bool operator>=(const BDate& date) const; 178 BDateTime(const BDate &date, const BTime &time); [all …]
|
/haiku/src/kits/network/libnetservices/ |
H A D | HttpTime.cpp | 65 BHttpTime::BHttpTime(BDateTime date) in BHttpTime() argument 67 fDate(date), in BHttpTime() 93 BHttpTime::SetDate(BDateTime date) in SetDate() argument 95 fDate = date; in SetDate() 140 BDate date(expireTime.tm_year + 1900, expireTime.tm_mon + 1, in Parse() local 142 BDateTime dateTime(date, time); in Parse()
|
H A D | NetworkCookie.cpp | 282 int64_t date = expiration.Time_t(); in SetMaxAge() local 283 date += (int64_t)maxAge; in SetMaxAge() 284 if (date > INT_MAX) in SetMaxAge() 285 date = INT_MAX; in SetMaxAge() 287 expiration.SetTime_t(date); in SetMaxAge() 379 BHttpTime date(fExpiration); in ExpirationString() local 382 fExpirationString = date.ToString(B_HTTP_TIME_FORMAT_COOKIE); in ExpirationString()
|
/haiku/src/tests/kits/locale/ |
H A D | DateFormatTest.cpp | 189 BDate date(2014, 9, 29); in TestFormatDate() local 191 result = format.Format(output, date, B_LONG_DATE_FORMAT); in TestFormatDate() 196 date.SetDate(2014, 29, 29); in TestFormatDate() 197 result = format.Format(output, date, B_LONG_DATE_FORMAT); in TestFormatDate() 344 std::ostream& operator<<(std::ostream& stream, const BDate& date) in operator <<() argument 346 stream << date.Year(); in operator <<() 348 stream << date.Month(); in operator <<() 350 stream << date.Day(); in operator <<() 356 std::ostream& operator<<(std::ostream& stream, const BTime& date) in operator <<() argument 358 stream << date.Hour(); in operator <<() [all …]
|
/haiku/src/kits/network/libnetservices2/ |
H A D | HttpTime.cpp | 94 BHttpTime::BHttpTime(BDateTime date) in BHttpTime() argument 96 fDate(date), in BHttpTime() 124 BHttpTime::SetTo(BDateTime date) in SetTo() argument 126 if (!date.IsValid()) in SetTo() 129 fDate = date; in SetTo() 212 BDate date(expireTime.tm_year + 1900, expireTime.tm_mon + 1, expireTime.tm_mday); in _Parse() local 213 fDate = BDateTime(date, time); in _Parse()
|
/haiku/src/tests/system/libroot/os/ |
H A D | ParseDateTest.cpp | 50 const char* date; in main() member 116 for (int32 i = 0; kDates[i].date; i++) { in main() 118 time_t result = parsedate_etc(kDates[i].date, now, &flags); in main() 138 printf("\"%s\" = %ld (%s) -> %s", kDates[i].date, result, in main()
|
/haiku/docs/user/locale/ |
H A D | DateFormat.dox | 19 \brief Contains BDateFormat class, a date formatter and parser. 76 \brief Fills in \a string with a formatted date up to \a maxSize bytes for 79 \param string The string buffer to fill with the formatted date. 85 \returns The number of bytes written during the date formatting. 97 \brief Fills in \a string with a formatted date for the given 100 \param string The string buffer to fill with the formatted date. 120 \brief Fills in \a string with a custom formatted date according to the 125 The positions are offsets in the string at which each element of the date 128 locale-aware set of BMenuFields to edit the date in the local format. 130 \param string The string buffer to fill with the formatted date. [all …]
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | Inode.cpp | 223 Inode::_GetTimespec(uint16 date, uint16 time, struct timespec ×pec) const in _GetTimespec() argument 229 time_t days = daze[(date >> 5) & 15] + ((date >> 9) + 10) * 365 in _GetTimespec() 230 + leaps((date >> 9) + 10, ((date >> 5) & 15) - 1) + (date & 31) -1; in _GetTimespec()
|
/haiku/headers/private/netservices/ |
H A D | HttpTime.h | 30 BHttpTime(BDateTime date); 35 void SetDate(BDateTime date);
|
/haiku/docs/user/support/ |
H A D | DateTime.dox | 680 \fn int32 BPrivate::BDate::Difference(const BDate &date) const 683 \param date Undocumented 760 \fn bool BPrivate::BDate::operator!=(const BDate &date) const 763 \param date Undocumented 773 \fn bool BPrivate::BDate::operator<(const BDate &date) const 776 \param date Undocumented 786 \fn bool BPrivate::BDate::operator<=(const BDate &date) const 789 \param date Undocumented 799 \fn bool BPrivate::BDate::operator==(const BDate &date) const 802 \param date Undocumented [all …]
|
H A D | parsedate.dox | 20 This is a set a functions for parsing date strings in various formats. 22 it was developed to parse the date strings found in usenet messages. 24 The given date will be parsed relative to the specified time, and using 25 a predefined set of time/date formats. 121 \brief invalid date string 123 This flag will be set if the specified date string could not be parsed 136 \param dateString the date that should be parsed, i.e. "next thursday".
|
/haiku/src/kits/storage/ |
H A D | Query.cpp | 177 BQuery::PushDate(const char* date) in PushDate() argument 179 if (date == NULL || !date[0] || parsedate(date, time(NULL)) < 0) in PushDate() 182 return _PushNode(new(nothrow) DateNode(date), true); in PushDate() 546 BString date(pos + 1, start - 1 - pos); in _ParseDates() local 547 parsedPredicate << parsedate(date.String(), time(NULL)); in _ParseDates()
|
/haiku/headers/private/netservices2/ |
H A D | HttpTime.h | 29 BHttpTime(BDateTime date); 34 void SetTo(BDateTime date);
|
/haiku/src/apps/mail/ |
H A D | Header.h | 82 void SetDate(time_t date); 83 void SetDate(const char* date);
|
H A D | Header.cpp | 582 THeaderView::SetDate(time_t date) in SetDate() argument 584 fDate = date; in SetDate() 590 formatter.Format(string, date, B_FULL_DATE_FORMAT, in SetDate() 598 THeaderView::SetDate(const char* date) in SetDate() argument 601 fDateControl->SetText(date); in SetDate() 673 time_t date = mail->Date(); in SetFromMessage() local 674 if (date <= 0) { in SetFromMessage() 678 SetDate(date); in SetFromMessage()
|
/haiku/docs/user/netservices/ |
H A D | HttpTime.dox | 31 According to section 3.3 of RFC 2616, the standard date format is the format described by 34 C-library standard date formatting of \c asctime(). 116 \fn BHttpTime::BHttpTime(BDateTime date) 117 \brief Constructs a new object and sets the timestamp to \a date. 119 \param date A valid \ref BDateTime object for the desired timestamp. 121 \exception BHttpTime::InvalidInput The \a date does not contain a valid timestamp. 142 \fn void BHttpTime::SetTo(BDateTime date) 143 \brief Set the current timestamp to \a date. 145 \param date A valid \ref BDateTime object for the desired timestamp. 147 \exception BHttpTime::InvalidInput The \a date does not contain a valid timestamp. [all …]
|
/haiku/data/catalogs/apps/webpositive/ |
H A D | th.catkeys | 4 (Finish: %date) Download Window (สิ้นสุด: %date) 18 (Finish: %date - Over %duration left) Download Window (เสร็จ: %date - เกิน %duration คงเหลือ) 119 (Finish: %date - %duration left) Download Window (เสร็จ: %date - %duration เหลือ)
|
H A D | ko.catkeys | 5 (Finish: %date) Download Window (완료: %date) 20 (Finish: %date - Over %duration left) Download Window (완료: %date - %duration 남음) 126 (Finish: %date - %duration left) Download Window (완료: %date - %duration 남음)
|
H A D | el.catkeys | 5 (Finish: %date) Download Window (Ολοκλήρωση: %date) 20 (Finish: %date - Over %duration left) Download Window (Ολοκλήρωση: %date - Απομένει παραπάνω από %… 126 (Finish: %date - %duration left) Download Window (Ολοκλήρωση: %date - Απομένουν %duration)
|
H A D | ru.catkeys | 5 (Finish: %date) Download Window (Завершение: %date) 20 (Finish: %date - Over %duration left) Download Window (Окончание: %date - Более %duration осталось) 126 (Finish: %date - %duration left) Download Window (Завершение: %date - %duration осталось)
|