Deprecated API


Contents
Deprecated Classes
org.joda.time.DateMidnight
          The time of midnight does not exist in some time zones where the daylight saving time forward shift skips the midnight hour. Use LocalDate to represent a date without a time zone. Or use DateTime to represent a full date and time, perhaps using DateTime.withTimeAtStartOfDay() to get an instant at the start of a day. 
org.joda.time.TimeOfDay
          Use LocalTime which has a much better internal implementation and has been available since 1.3 
org.joda.time.TimeOfDay.Property
          Use LocalTime which has a much better internal implementation 
org.joda.time.YearMonthDay
          Use LocalDate which has a much better internal implementation and has been available since 1.3 
org.joda.time.YearMonthDay.Property
          Use LocalDate which has a much better internal implementation 
 

Deprecated Methods
org.joda.time.format.DateTimeFormatter.getChronolgy()
          Use the method with the correct spelling 
org.joda.time.format.DateTimeParserBucket.getOffset()
          use Integer version 
org.joda.time.format.DateTimeParserBucket.setOffset(int)
          use Integer version 
org.joda.time.format.DateTimeParserBucket.setPivotYear(Integer)
          this method should never have been public 
org.joda.time.LocalDate.toDateMidnight()
          DateMidnight is deprecated 
org.joda.time.DateTime.toDateMidnight()
          DateMidnight is deprecated 
org.joda.time.LocalDate.toDateMidnight(DateTimeZone)
          DateMidnight is deprecated 
org.joda.time.LocalDate.toDateTimeAtMidnight()
          Use LocalDate.toDateTimeAtStartOfDay() which won't throw an exception 
org.joda.time.LocalDate.toDateTimeAtMidnight(DateTimeZone)
          Use LocalDate.toDateTimeAtStartOfDay(DateTimeZone) which won't throw an exception 
org.joda.time.Instant.toDateTimeISO()
          Use toDateTime() as it is identical 
org.joda.time.Instant.toMutableDateTimeISO()
          Use toMutableDateTime() as it is identical 
org.joda.time.DateTime.toTimeOfDay()
          Use LocalTime instead of TimeOfDay 
org.joda.time.DateTime.toYearMonthDay()
          Use LocalDate instead of YearMonthDay 
org.joda.time.DateMidnight.toYearMonthDay()
          Use LocalDate instead of YearMonthDay 
 

Deprecated Constructors
org.joda.time.format.DateTimeParserBucket(long, Chronology, Locale)
          Use longer constructor 
org.joda.time.format.DateTimeParserBucket(long, Chronology, Locale, Integer)
          Use longer constructor 
 



Copyright © 2002–2014 Joda.org. All rights reserved.