@drewsonne/maya-dates / Exports / FullDate
Minimal interface used for equality comparison across calendar components.
↳ FullDate
• new FullDate(cr
, lc
)
Create a new full date.
Name | Type | Description |
---|---|---|
cr |
CalendarRound |
Calendar Round component. |
lc |
LongCount |
Long Count component. |
• comment: Comment
Attached comment.
• cr: CalendarRound
• lc: LongCount
▸ appendComment(comment
): any
Append additional text to the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any
▸ commentIsEqual(otherCommentWrapper
): boolean
Compare this wrapper’s comment against another wrapper.
Name | Type |
---|---|
otherCommentWrapper |
CommentWrapper |
boolean
▸ equal(other
): boolean
Compare two full dates for equality.
Name | Type |
---|---|
other |
IPart |
boolean
▸ equalWithComment(otherCommentWrapper
): boolean
Check equality including the associated comment.
Name | Type |
---|---|
otherCommentWrapper |
IPart |
boolean
CommentWrapper.equalWithComment
▸ isPartial(): boolean
Determine if either component contains wildcards.
boolean
▸ setComment(comment
): any
Replace the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any
▸ toString(): string
Render the full date as a string containing both components.
string