java.lang.Object
dev.metaschema.core.metapath.function.library.FnDateTime
Implements the XPath 3.1 fn:dateTime
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IDateTimeItemfnDateTime(IDateItem date, ITimeItem time) Create a date/time item from the provided date and time values.static IDateTimeItemfnDateTimeOfNullable(IDateItem date, ITimeItem time) Create a date/time item from the provided date and time values.
-
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 ornulltime- the time value to get the hour, minute, seconds from ornull- Returns:
- the data/time value composed of the provided date and time values or
nullif either date or time value isnull
-
fnDateTime
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 fromtime- the time value to get the hour, minute, seconds from- Returns:
- the data/time value composed of the provided date and time values
-