XmpTime
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage, com.groupdocs.metadata.core.XmpMetadataContainer, com.groupdocs.metadata.core.XmpComplexType
public final class XmpTime extends XmpComplexType
Representation of a time value in seconds.
| Constructor | Description |
|---|---|
| XmpTime() | Initializes a new instance of the XmpTime class. |
| XmpTime(XmpRational scale, int value) | Initializes a new instance of the XmpTime class. |
| Method | Description |
|---|---|
| getScale() | Gets the scale for the time value. |
| setScale(XmpRational value) | Sets the scale for the time value. |
| getValue() | Gets the time value in the specified scale. |
| setValue(Integer value) | Sets the time value in the specified scale. |
public XmpTime()
Initializes a new instance of the XmpTime class.
public XmpTime(XmpRational scale, int value)
Initializes a new instance of the XmpTime class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| scale | XmpRational | The scale. |
| value | int | The value. |
public final XmpRational getScale()
Gets the scale for the time value.
Returns: XmpRational - The scale for the time value. For NTSC, use 1001/30000, or the less accurate 100/2997.
For PAL, use 1/25.
public final void setScale(XmpRational value)
Sets the scale for the time value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpRational | The scale for the time value. For NTSC, use 1001/30000, or the less accurate 100/2997. |
For PAL, use 1/25. |
public final Integer getValue()
Gets the time value in the specified scale.
Returns: java.lang.Integer - The time value in the specified scale.
public final void setValue(Integer value)
Sets the time value in the specified scale.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer | The time value in the specified scale. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.