|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateStruct
Specifies the date component of timestamp values that are specified according to Coordinated Universal Time (UTC). AAF dates represent dates with year, month and day of the month components.
DateStruct
,
TypeDefinitionRecord.DateStruct
,
TimeStamp
,
TimeStruct
Method Summary | |
---|---|
byte |
getDay()
Returns the day of the month component of the date. |
byte |
getMonth()
Returns the month component of the date, which is in the range 1 to 12. |
short |
getYear()
Returns the year component of the date. |
void |
setDate(byte day,
byte month,
short year)
Simultaneously set the components of date structure value with the given day, month and year. |
void |
setDay(byte day)
Set the day of the month component of the date, in the range 1 to 31. |
void |
setMonth(byte month)
Set the month component of the date, which is in the range 1 to 12. |
void |
setYear(short year)
Sets the year component of the date, in the range -9999 to 9999. |
Method Detail |
---|
void setDate(@UInt8 byte day, @UInt8 byte month, @Int16 short year) throws IllegalArgumentException
Simultaneously set the components of date structure value with the given day, month and year.
day
- Day of the month component of the date.month
- Month component of the date.year
- Year component of the date.
IllegalArgumentException
- One or more of the component values is outside the acceptable
range for their values, or the specified date does not exist.@UInt8 byte getDay()
Returns the day of the month component of the date.
void setDay(@UInt8 byte day) throws IllegalArgumentException
Set the day of the month component of the date, in the range 1 to 31.
day
- Day of the month component of the date.
IllegalArgumentException
- Provided day value is outside the acceptable range.@UInt8 byte getMonth()
Returns the month component of the date, which is in the range 1 to 12.
void setMonth(@UInt8 byte month) throws IllegalArgumentException
Set the month component of the date, which is in the range 1 to 12.
month
- Month component of the date.
IllegalArgumentException
- Provided month value is outside the acceptable range.@Int16 short getYear()
Returns the year component of the date.
void setYear(@Int16 short year) throws IllegalArgumentException
Sets the year component of the date, in the range -9999 to 9999.
year
- Year component of the date.
IllegalArgumentException
- Year is outside the acceptable range.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |