8#ifndef INCLUDED_BDLT_DATEUTIL
9#define INCLUDED_BDLT_DATEUTIL
188#include <bdlscm_version.h>
221 static Date addYearsEomEndOfFebruary(
const Date& original,
int numYears);
405 if (2 == original.
month() && 28 <= original.
day()) {
406 return addYearsEomEndOfFebruary(original, numYears);
417 const int newYear = original.
year() + numYears;
419 if (2 == original.
month() && 29 == original.
day()) {
447 return Date(yyyymmddValue / 10000,
448 (yyyymmddValue / 100) % 100,
449 yyyymmddValue % 100);
455 return date.
year() * 10000 + date.
month() * 100 + date.
day();
472 const int day = yyyymmddValue % 100;
473 yyyymmddValue /= 100;
474 const int month = yyyymmddValue % 100;
Definition bdlt_date.h:294
int day() const
Return the day of the month in the range [1 .. 31] of this date.
Definition bdlt_date.h:927
int year() const
Return the year in the range [1 .. 9999] of this date.
Definition bdlt_date.h:977
int month() const
Return the month of the year in the range [1 .. 12] of this date.
Definition bdlt_date.h:965
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1762
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_REVIEW(X)
Definition bsls_review.h:949
Definition bbldc_basicisma30360.h:112
Definition bdlt_dateutil.h:206
static Date addYears(const Date &original, int numYears, bool eomFlag)
Definition bdlt_dateutil.h:392
static int convertToYYYYMMDD(const Date &date)
Definition bdlt_dateutil.h:453
static Date nthDayOfWeekInMonth(int year, int month, DayOfWeek::Enum dayOfWeek, int n)
static Date addMonthsEom(const Date &original, int numMonths)
static Date convertFromYYYYMMDDRaw(int yyyymmddValue)
Definition bdlt_dateutil.h:443
static int convertFromYYYYMMDD(Date *result, int yyyymmddValue)
Definition bdlt_dateutil.h:430
static Date lastDayInMonth(int year, int month)
Definition bdlt_dateutil.h:482
static Date addYearsEom(const Date &original, int numYears)
Definition bdlt_dateutil.h:400
static Date addMonths(const Date &original, int numMonths, bool eomFlag)
Definition bdlt_dateutil.h:384
static Date lastDayOfWeekInMonth(int year, int month, DayOfWeek::Enum dayOfWeek)
static Date previousDayOfWeek(DayOfWeek::Enum dayOfWeek, const Date &date)
static Date addYearsNoEom(const Date &original, int numYears)
Definition bdlt_dateutil.h:412
static Date previousDayOfWeekInclusive(DayOfWeek::Enum dayOfWeek, const Date &date)
static Date nextDayOfWeek(DayOfWeek::Enum dayOfWeek, const Date &date)
static bool isValidYYYYMMDD(int yyyymmddValue)
Definition bdlt_dateutil.h:470
static Date addMonthsNoEom(const Date &original, int numMonths)
static Date earliestDayOfWeekInMonth(int year, int month, DayOfWeek::Enum dayOfWeek)
Definition bdlt_dateutil.h:459
static Date nextDayOfWeekInclusive(DayOfWeek::Enum dayOfWeek, const Date &date)
Enum
Enumerated day-of-week values.
Definition bdlt_dayofweek.h:123
static bool isValidYearMonthDay(int year, int month, int day)
Definition bdlt_posixdateimputil.h:742
static bool isLeapYear(int year)
Definition bdlt_posixdateimputil.h:726
static int lastDayOfMonth(int year, int month)