Class DateBuilder
java.lang.Object
ch.tocco.nice2.optional.calendar.api.util.DateBuilder
A convenience class for create date and date-time objects.
Please have a look at the test class for examples on how to use it.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.joda.time.DateTimeorg.joda.time.InstantCreates aInstant.clear()Clears all set values.Sets the date (not time!!) from the string.setDayOfMonth(int dom) setHour(int hour) setMillis(int millis) setMinute(int min) setMonth(int month) setSecond(int sec) Sets the time from the specified string.setYear(int year) 
- 
Constructor Details- 
DateBuilderpublic DateBuilder()
 
- 
- 
Method Details- 
buildDateTimepublic org.joda.time.DateTime buildDateTime()
- 
buildInstantpublic org.joda.time.Instant buildInstant()Creates aInstant. Note, if you only set time infos, this will default to 1970-01-01.
- 
clearClears all set values.
- 
setDayOfMonth
- 
setMonth
- 
setYear
- 
setDateSets the date (not time!!) from the string. Useyyyy-MM-ddpattern, for example: 2002-09-23.
- 
setHour
- 
setMinute
- 
setSecond
- 
setMillis
- 
setTimeSets the time from the specified string. UseHH:mm[:ss]pattern, where the seconds are optional.
 
-