java.lang.Object
dev.metaschema.core.metapath.function.library.FnDateTime

public final class FnDateTime extends Object
Implements the XPath 3.1 fn:dateTime function.
  • Method Details

    • fnDateTimeOfNullable

      @Nullable public static IDateTimeItem fnDateTimeOfNullable(@Nullable IDateItem date, @Nullable ITimeItem time)
      Create a date/time item from the provided date and time values.

      Implements the XPath 3.1 fn:current-date function.

      Parameters:
      date - the date value to get the year, month, and day from or null
      time - the time value to get the hour, minute, seconds from or null
      Returns:
      the data/time value composed of the provided date and time values or null if either date or time value is null
    • fnDateTime

      @NonNull public static IDateTimeItem fnDateTime(@NonNull IDateItem date, @NonNull ITimeItem time)
      Create a date/time item from the provided date and time values.

      Implements the XPath 3.1 fn:current-date function.

      Parameters:
      date - the date value to get the year, month, and day from
      time - the time value to get the hour, minute, seconds from
      Returns:
      the data/time value composed of the provided date and time values