summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/i18n/hebrwcal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu-xetex/i18n/hebrwcal.cpp')
-rw-r--r--Build/source/libs/icu-xetex/i18n/hebrwcal.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/Build/source/libs/icu-xetex/i18n/hebrwcal.cpp b/Build/source/libs/icu-xetex/i18n/hebrwcal.cpp
index 551c553397d..1814272b0ce 100644
--- a/Build/source/libs/icu-xetex/i18n/hebrwcal.cpp
+++ b/Build/source/libs/icu-xetex/i18n/hebrwcal.cpp
@@ -1,9 +1,10 @@
/*
- * Copyright (C) 2003-2004, International Business Machines Corporation
- * and others. All Rights Reserved.
- ******************************************************************************
+******************************************************************************
+* Copyright (C) 2003-2006, International Business Machines Corporation
+* and others. All Rights Reserved.
+******************************************************************************
*
- * File HEBRWCAL.H
+ * File HEBRWCAL.CPP
*
* Modification History:
*
@@ -31,7 +32,7 @@
* time of day in sync with that of the Gregorian calendar, we use
* midnight, rather than sunset the day before.
*/
-static const double EPOCH_MILLIS = -180799862400000.; // 1/1/1 HY
+//static const double EPOCH_MILLIS = -180799862400000.; // 1/1/1 HY
static const int32_t LIMITS[UCAL_FIELD_COUNT][4] = {
// Minimum Greatest Least Maximum
@@ -264,6 +265,14 @@ void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode&
}
/**
+ * @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
+ */
+void HebrewCalendar::add(EDateFields field, int32_t amount, UErrorCode& status)
+{
+ add((UCalendarDateFields)field, amount, status);
+}
+
+/**
* Rolls (up/down) a specified amount time on the given field. For
* example, to roll the current date up by three days, you can call
* <code>roll(Calendar.DATE, 3)</code>. If the