public class GMonthValue extends GDateValue
day, daysPerMonth, hasNoYearZero, month, monthData, year
MISSING_TIMEZONE, NO_TIMEZONE
typeLabel
NaN_MATCH_KEY
Constructor and Description |
---|
GMonthValue(byte month,
int tz) |
GMonthValue(byte month,
int tz,
AtomicType type) |
Modifier and Type | Method and Description |
---|---|
CalendarValue |
add(DurationValue duration)
Add a duration to this date/time value
|
CalendarValue |
adjustTimezone(int tz)
Return a new date, time, or dateTime with the same normalized value, but
in a different timezone
|
AtomicValue |
copyAsSubType(AtomicType typeLabel)
Make a copy of this date, time, or dateTime value
|
java.lang.CharSequence |
getPrimitiveStringValue()
Convert the value to a string, using the serialization rules for the primitive type.
|
BuiltInAtomicType |
getPrimitiveType()
Determine the primitive type of the value.
|
static ConversionResult |
makeGMonthValue(java.lang.CharSequence value) |
checkValidInJavascript, compareTo, equals, getCalendar, getComponent, getDay, getMonth, getSchemaComparable, getYear, hashCode, isLeapYear, isValidDate, setLexicalValue, toDateTime
adjustTimezone, appendTimezone, appendTimezone, asMapKey, getComparisonKey, getTimezoneInMinutes, getXMLGregorianCalendar, getXPathComparable, hasTimezone, identityHashCode, isIdentical, makeCalendarValue, removeTimezone, setTimezoneInMinutes, subtract
asAtomic, atomize, checkPermittedContents, effectiveBooleanValue, getCanonicalLexicalRepresentation, getCardinality, getGenre, getItemType, getLength, getStringValue, getStringValueCS, getUType, head, isIdentical, isNaN, itemAt, iterate, iterator, process, setTypeLabel, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asAtomic
isStreamed, reduce, subsequence, toGroundedValue, toShortString
asIterable, materialize
makeRepeatable
public GMonthValue(byte month, int tz)
public GMonthValue(byte month, int tz, AtomicType type)
public static ConversionResult makeGMonthValue(java.lang.CharSequence value)
public AtomicValue copyAsSubType(AtomicType typeLabel)
copyAsSubType
in class AtomicValue
typeLabel
- public BuiltInAtomicType getPrimitiveType()
getPrimitiveType
in class AtomicValue
public java.lang.CharSequence getPrimitiveStringValue()
AtomicValue
getPrimitiveStringValue
in class AtomicValue
public CalendarValue add(DurationValue duration) throws XPathException
add
in class CalendarValue
duration
- the duration to be added (which might be negative)XPathException
public CalendarValue adjustTimezone(int tz)
adjustTimezone
in class CalendarValue
tz
- the new timezone, in minutesCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.