sql:timestampadd( $dateTimeType as xs:ID, $value as xs:integer, $timestamp as xs:string ) as xs:integer?
Returns a xs:string? timestamp created by adding a number to the given dateTimeType field of a given timestamp.
xdmp:sql("select timestampadd(SQL_TSI_DAY, 2,'2009-05-18T03:03:03')","format") => |ANON7761991471377004207| |2009-05-20T03:03:03|
sql:timestampadd('SQL_TSI_DAY', 2,'2009-05-18T03:03:03') => |ANON7761991471377004207| |2009-05-20T03:03:03|
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.