Platforms to show: All Mac Windows Linux Cross-Platform
XMPDateTimeMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | XMP | MBS XMP Plugin | 6.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Dates and time in the serialized XMP are ISO 8601 strings. The XMPDateTimeMBS class allows easy conversion with other formats.
DateTime values are occasionally used in cases with only a date or only a time component. A date without a time has zeros in the XMPDateTimeMBS class for all time fields. A time without a date has zeros for all date fields (year, month, and day).
- 13 properties
- property Day as Integer
- property hasDate as Boolean
- property hasTime as Boolean
- property hasTimeZone as Boolean
- property Hour as Integer
- property Minute as Integer
- property Month as Integer
- property NanoSecond as Integer
- property Second as Integer
- property TimezoneHour as Integer
- property TimezoneMinute as Integer
- property TimezoneSign as Integer
- property Year as Integer
- 13 methods
- method ClearTimeZone
- method Clone as XMPDateTimeMBS
- method Compare(other as XMPDateTimeMBS) as Integer
- method Constructor
- method Constructor(text as string)
- method ConvertToLocalTime
- method ConvertToUTCTime
- method IsDateOnly as Boolean
- method IsTimeOnly as Boolean
- method Operator_Convert as string
- method Operator_Convert(text as string)
- method SetTimeZone
- method Str as string
- 3 constants
Constants
Constant | Value | Description |
---|---|---|
kXMP_TimeEastOfUTC | 1 |
One of the constants for the TimezoneSign property.
UTC time. |
kXMP_TimeIsUTC | 0 |
One of the constants for the TimezoneSign property.
Time zone is east of UTC. |
kXMP_TimeWestOfUTC | -1 |
One of the constants for the TimezoneSign property.
Time zone is west of UTC. |
This class has no sub classes.
Some methods using this class:
- XMPMetaMBS.ConvertFromDate(value as XMPDateTimeMBS) as string
- XMPMetaMBS.ConvertToDate(value as string) as XMPDateTimeMBS
- XMPMetaMBS.CurrentDateTime as XMPDateTimeMBS
- XMPMetaMBS.GetPropertyDate(schemaNS as string, propName as string, byref propValue as XMPDateTimeMBS, byref options as Integer) as boolean
- XMPMetaMBS.SetPropertyDate(schemaNS as string, propName as string, propValue as XMPDateTimeMBS, options as Integer=0)
Some examples using this class:
The items on this page are in the following plugins: MBS XMP Plugin.
XMPAssertNotifyMBS - XMPExceptionMBS