Java Doc for ReadWritableDateTime.java in  » Development » Joda-Time » org » joda » time » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Joda Time » org.joda.time 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.joda.time.ReadWritableDateTime

All known Subclasses:   org.joda.time.MutableDateTime,
ReadWritableDateTime
public interface ReadWritableDateTime extends ReadableDateTime,ReadWritableInstant(Code)
Defines an instant in time that can be queried and modified using datetime fields.

The implementation of this interface will be mutable. It may provide more advanced methods than those in the interface.

Methods in your application should be defined using ReadWritableDateTime as a parameter if the method wants to manipulate and change a date in simple ways.
author:
   Stephen Colebourne
author:
   Brian S O'Neill
since:
   1.0





Method Summary
 voidaddDays(int days)
     Add a number of days to the date.
 voidaddHours(int hours)
     Add a number of hours to the date.
 voidaddMillis(int millis)
     Add a number of milliseconds to the date.
 voidaddMinutes(int minutes)
     Add a number of minutes to the date.
 voidaddMonths(int months)
     Add a number of months to the date.
 voidaddSeconds(int seconds)
     Add a number of seconds to the date.
 voidaddWeeks(int weeks)
     Add a number of weeks to the date.
 voidaddWeekyears(int weekyears)
     Add a number of weekyears to the date.
 voidaddYears(int years)
     Add a number of years to the date.
 voidsetDate(int year, int monthOfYear, int dayOfMonth)
     Set the date from fields.
 voidsetDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
     Set the date and time from fields.
 voidsetDayOfMonth(int dayOfMonth)
     Set the day of the month to the specified value.
 voidsetDayOfWeek(int dayOfWeek)
     Set the day of week to the specified value.
 voidsetDayOfYear(int dayOfYear)
     Set the day of year to the specified value.
 voidsetHourOfDay(int hourOfDay)
     Set the hour of the day to the specified value.
 voidsetMillisOfDay(int millisOfDay)
     Set the millis of the day to the specified value.
 voidsetMillisOfSecond(int millisOfSecond)
     Set the millis of the second to the specified value.
 voidsetMinuteOfDay(int minuteOfDay)
     Set the minute of the day to the specified value.
 voidsetMinuteOfHour(int minuteOfHour)
     Set the minute of the hour to the specified value.
 voidsetMonthOfYear(int monthOfYear)
     Set the month of the year to the specified value.
 voidsetSecondOfDay(int secondOfDay)
     Set the second of the day to the specified value.
 voidsetSecondOfMinute(int secondOfMinute)
     Set the second of the minute to the specified value.
 voidsetTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)
     Set the time from fields.
 voidsetWeekOfWeekyear(int weekOfWeekyear)
     Set the week of weekyear to the specified value.
 voidsetWeekyear(int weekyear)
     Set the weekyear to the specified value.
 voidsetYear(int year)
     Set the year to the specified value.



Method Detail
addDays
void addDays(int days)(Code)
Add a number of days to the date.
Parameters:
  days - the days to add
throws:
  IllegalArgumentException - if the value is invalid



addHours
void addHours(int hours)(Code)
Add a number of hours to the date.
Parameters:
  hours - the hours to add
throws:
  IllegalArgumentException - if the value is invalid



addMillis
void addMillis(int millis)(Code)
Add a number of milliseconds to the date. The implementation of this method differs from the ReadWritableDateTime.add(long) method in that a DateTimeField performs the addition.
Parameters:
  millis - the milliseconds to add
throws:
  IllegalArgumentException - if the value is invalid



addMinutes
void addMinutes(int minutes)(Code)
Add a number of minutes to the date.
Parameters:
  minutes - the minutes to add
throws:
  IllegalArgumentException - if the value is invalid



addMonths
void addMonths(int months)(Code)
Add a number of months to the date.
Parameters:
  months - the months to add
throws:
  IllegalArgumentException - if the value is invalid



addSeconds
void addSeconds(int seconds)(Code)
Add a number of seconds to the date.
Parameters:
  seconds - the seconds to add
throws:
  IllegalArgumentException - if the value is invalid



addWeeks
void addWeeks(int weeks)(Code)
Add a number of weeks to the date.
Parameters:
  weeks - the weeks to add
throws:
  IllegalArgumentException - if the value is invalid



addWeekyears
void addWeekyears(int weekyears)(Code)
Add a number of weekyears to the date.
Parameters:
  weekyears - the weekyears to add
throws:
  IllegalArgumentException - if the value is invalid



addYears
void addYears(int years)(Code)
Add a number of years to the date.
Parameters:
  years - the years to add
throws:
  IllegalArgumentException - if the value is invalid



setDate
void setDate(int year, int monthOfYear, int dayOfMonth)(Code)
Set the date from fields. The time part of this object will be unaffected.
Parameters:
  year - the year
Parameters:
  monthOfYear - the month of the year
Parameters:
  dayOfMonth - the day of the month
throws:
  IllegalArgumentException - if any value is invalid



setDateTime
void setDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)
Set the date and time from fields.
Parameters:
  year - the year
Parameters:
  monthOfYear - the month of the year
Parameters:
  dayOfMonth - the day of the month
Parameters:
  hourOfDay - the hour of the day
Parameters:
  minuteOfHour - the minute of the hour
Parameters:
  secondOfMinute - the second of the minute
Parameters:
  millisOfSecond - the millisecond of the second
throws:
  IllegalArgumentException - if any value is invalid



setDayOfMonth
void setDayOfMonth(int dayOfMonth)(Code)
Set the day of the month to the specified value.
Parameters:
  dayOfMonth - the day of the month
throws:
  IllegalArgumentException - if the value is invalid



setDayOfWeek
void setDayOfWeek(int dayOfWeek)(Code)
Set the day of week to the specified value.
Parameters:
  dayOfWeek - the day of the week
throws:
  IllegalArgumentException - if the value is invalid



setDayOfYear
void setDayOfYear(int dayOfYear)(Code)
Set the day of year to the specified value.
Parameters:
  dayOfYear - the day of the year
throws:
  IllegalArgumentException - if the value is invalid



setHourOfDay
void setHourOfDay(int hourOfDay)(Code)
Set the hour of the day to the specified value.
Parameters:
  hourOfDay - the hour of day
throws:
  IllegalArgumentException - if the value is invalid



setMillisOfDay
void setMillisOfDay(int millisOfDay)(Code)
Set the millis of the day to the specified value.
Parameters:
  millisOfDay - the millis of day
throws:
  IllegalArgumentException - if the value is invalid



setMillisOfSecond
void setMillisOfSecond(int millisOfSecond)(Code)
Set the millis of the second to the specified value.
Parameters:
  millisOfSecond - the millis of second
throws:
  IllegalArgumentException - if the value is invalid



setMinuteOfDay
void setMinuteOfDay(int minuteOfDay)(Code)
Set the minute of the day to the specified value.
Parameters:
  minuteOfDay - the minute of day
throws:
  IllegalArgumentException - if the value is invalid



setMinuteOfHour
void setMinuteOfHour(int minuteOfHour)(Code)
Set the minute of the hour to the specified value.
Parameters:
  minuteOfHour - the minute of hour
throws:
  IllegalArgumentException - if the value is invalid



setMonthOfYear
void setMonthOfYear(int monthOfYear)(Code)
Set the month of the year to the specified value.
Parameters:
  monthOfYear - the month of the year
throws:
  IllegalArgumentException - if the value is invalid



setSecondOfDay
void setSecondOfDay(int secondOfDay)(Code)
Set the second of the day to the specified value.
Parameters:
  secondOfDay - the second of day
throws:
  IllegalArgumentException - if the value is invalid



setSecondOfMinute
void setSecondOfMinute(int secondOfMinute)(Code)
Set the second of the minute to the specified value.
Parameters:
  secondOfMinute - the second of minute
throws:
  IllegalArgumentException - if the value is invalid



setTime
void setTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)
Set the time from fields. The date part of this object will be unaffected.
Parameters:
  hour - the hour
Parameters:
  minuteOfHour - the minute of the hour
Parameters:
  secondOfMinute - the second of the minute
Parameters:
  millisOfSecond - the millisecond of the second
throws:
  IllegalArgumentException - if any value is invalid



setWeekOfWeekyear
void setWeekOfWeekyear(int weekOfWeekyear)(Code)
Set the week of weekyear to the specified value.
Parameters:
  weekOfWeekyear - the week of the weekyear
throws:
  IllegalArgumentException - if the value is invalid



setWeekyear
void setWeekyear(int weekyear)(Code)
Set the weekyear to the specified value.
Parameters:
  weekyear - the weekyear
throws:
  IllegalArgumentException - if the value is invalid



setYear
void setYear(int year)(Code)
Set the year to the specified value.
Parameters:
  year - the year
throws:
  IllegalArgumentException - if the value is invalid



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.