
CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 266
XMPDateTime object properties
All properties are read-write, and allow you to modify the date-time value. If values are set outside the
allowed range, they are automatically set to the minimum or maximum allowed value.
XMPDateTime object functions
year
Number The year, in the range [0000...9999].
month
Number The month, in the range [1...12].
day
Number The day, in the range [1...31].
hour
Number The hour, in the range [1...23].
minute
Number The minute, in the range [1...59].
second
Number The second, in the range [1...59.
nanosecond
Number The nanosecond, in the range [0...1e+9 -1].
tzSign
Number The time zone direction of offset.
0: UTC
-1: west
1: east
tzHour
Number The time zone hour offset from the prime meridian, in the range [1...23].
tzMinute
Number The time zone minute offset from the prime meridian, in the range [1...59].
compareTo()
XMPDateTimeObj.compareTo(xmpDateTime)
xmpDataTime
Another XMPDateTime object.
Reports the time order of two date-time values.
Returns 0 if the two values are the same, 1 if this date-time is later than the comparison value, -1 if
this date-time is earlier than the comparison value.
convertToLocalTime()
XMPDateTimeObj.convertToLocalTime()
Sets the time zone in this object to the local operating-system time zone, adjusting the time values
from the previous time zone, if necessary.
Returns
undefined.
convertToUTCTime()
XMPDateTimeObj.convertToUTCTime()
Sets the time zone in this object to UTC (coordinated universal time), adjusting the time values from
the previous time zone, if necessary.
Returns
undefined.
Comentários a estes Manuais