Can I increase the date using xpath?

I need to increase the current date by 7 days, and I wonder if it is possible to do this using the xpath function.

thank!

+3
source share
2 answers

This is possible in XPATH 2.0 . There are a number of date functions .

current-date() + xs:dayTimeDuration('P7D')
+3
source

If your date is in some numerical format (CTIME, seconds since 1970 (32 bits int) or FILETIME, 100 nanosecond samples from 1601 (64 bits)), then time is accelerated. Just add the correct number of seconds (or 100 nanosecond intervals) to the time.

CTIME Java, (86 400 ), , . , .

0

Source: https://habr.com/ru/post/1748817/


All Articles