/** * Get the current date and time for this query or transformation. * All calls during one transformation return the same answer. * * @return Get the current date and time. This will deliver the same value * for repeated calls within the same transformation */ public DateTimeValue getCurrentDateTime() { return controller.getCurrentDateTime(); }
/** * Get the current date and time for this query or transformation. * All calls during one transformation return the same answer. * * @return Get the current date and time. This will deliver the same value * for repeated calls within the same transformation */ public DateTimeValue getCurrentDateTime() { return controller.getCurrentDateTime(); }
/** * Get the current date and time for this query or transformation. * All calls during one transformation return the same answer. * * @return Get the current date and time. This will deliver the same value * for repeated calls within the same transformation */ public DateTimeValue getCurrentDateTime() { return controller.getCurrentDateTime(); }
/** * Get the current date and time for this query or transformation. * All calls during one transformation return the same answer. * * @return Get the current date and time. This will deliver the same value * for repeated calls within the same transformation */ public DateTimeValue getCurrentDateTime() { return controller.getCurrentDateTime(); }
/** * Get the current date and time for this query or transformation. * All calls during one transformation return the same answer. * * @return Get the current date and time. This will deliver the same value * for repeated calls within the same transformation */ public DateTimeValue getCurrentDateTime() { return controller.getCurrentDateTime(); }
/** * Get the implicit timezone offset for this query or transformation * * @return the implicit timezone as an offset in minutes. This will be the default/local timezone * determined by the platform on which the application is running. The value will be unchanged for * repeated calls within the same transformation. */ public int getImplicitTimezone() { return getCurrentDateTime().getTimezoneInMinutes(); }
/** * Get the implicit timezone offset for this query or transformation * * @return the implicit timezone as an offset in minutes. This will be the default/local timezone * determined by the platform on which the application is running. The value will be unchanged for * repeated calls within the same transformation. */ public int getImplicitTimezone() { return getCurrentDateTime().getTimezoneInMinutes(); }
/** * Get the implicit timezone for this query or transformation * @return the implicit timezone as an offset in minutes */ public int getImplicitTimezone() { return getCurrentDateTime().getTimezoneInMinutes(); }
/** * Get the implicit timezone for this query or transformation * @return the implicit timezone as an offset in minutes */ public int getImplicitTimezone() { return getCurrentDateTime().getTimezoneInMinutes(); }
/** * Get the dateTime value representing the nominal * date/time of this transformation run. Two calls within the same * query or transformation will always return the same answer. * * @param context the XPath dynamic context. May be null, in which case * the current date and time are taken directly from the system clock * @return the current xs:dateTime */ public static DateTimeValue getCurrentDateTime(XPathContext context) { Controller c; if (context == null || (c = context.getController()) == null) { // non-XSLT/XQuery environment // We also take this path when evaluating compile-time expressions that require an implicit timezone. return new DateTimeValue(new GregorianCalendar(), true); } else { return c.getCurrentDateTime(); } }
/** * Get the dateTime value representing the nominal * date/time of this transformation run. Two calls within the same * query or transformation will always return the same answer. * * @param context the XPath dynamic context. May be null, in which case * the current date and time are taken directly from the system clock * @return the current xs:dateTime */ public static DateTimeValue getCurrentDateTime(XPathContext context) { Controller c; if (context == null || (c = context.getController()) == null) { // non-XSLT/XQuery environment // We also take this path when evaluating compile-time expressions that require an implicit timezone. return new DateTimeValue(new GregorianCalendar(), true); } else { return c.getCurrentDateTime(); } }
/** * Get the dateTime value representing the nominal * date/time of this transformation run. Two calls within the same * query or transformation will always return the same answer. * * @param context the XPath dynamic context. May be null, in which case * the current date and time are taken directly from the system clock * @return the current xs:dateTime */ /*@Nullable*/ public static DateTimeValue getCurrentDateTime(/*@Nullable*/ XPathContext context) { Controller c; if (context == null || (c = context.getController()) == null) { // non-XSLT/XQuery environment // We also take this path when evaluating compile-time expressions that require an implicit timezone. return now(); } else { return c.getCurrentDateTime(); } }
/** * Get the dateTime value representing the nominal * date/time of this transformation run. Two calls within the same * query or transformation will always return the same answer. * * @param context the XPath dynamic context. May be null, in which case * the current date and time are taken directly from the system clock * @return the current xs:dateTime */ /*@Nullable*/ public static DateTimeValue getCurrentDateTime(/*@Nullable*/ XPathContext context) { Controller c; if (context == null || (c = context.getController()) == null) { // non-XSLT/XQuery environment // We also take this path when evaluating compile-time expressions that require an implicit timezone. return now(); } else { return c.getCurrentDateTime(); } }