| java.lang.Object net.sf.saxon.exslt.Date
Date | final public class Date (Code) | | This class implements extension functions in the
http://exslt.org/dates-and-times namespace.
|
Method Summary | |
public static String | date(String dateTime) The date:date function returns the date specified in the date/time string given as the
argument. | public static String | date() The date:date function returns the current date. | public static String | dateTime() The date:date-time function returns the current date and time as a date/time string. | public static String | dayAbbreviation(String dateTime) Return the day of the week given in a date as an English day abbreviation:
one of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', or 'Sat'. | public static String | dayAbbreviation() Return the day of the week given in the current date as an English day abbreviation:
one of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', or 'Sat'. | public static double | dayInMonth(String dateTime) | public static double | dayInMonth() | public static double | dayInWeek(String dateTime) Return the day of the week given in a date as a number. | public static double | dayInWeek() Return the day of the week in the current date as a number. | public static double | dayInYear(String dateTime) | public static double | dayInYear() | public static String | dayName(String dateTime) Return the day of the week given in a date as an English day name:
one of 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday' or 'Friday'. | public static String | dayName() Return the day of the week given in the current date as an English day name:
one of 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday' or 'Friday'. | public static double | dayOfWeekInMonth(String dateTime) Return the day-of-the-week in a month of a date as a number
(for example 3 for the 3rd Tuesday in May). | public static double | dayOfWeekInMonth() Return the day-of-the-week in a month of the current date as a number
(for example 3 for the 3rd Tuesday in May). | public static double | hourInDay(String dateTime) | public static double | hourInDay() | public static boolean | leapYear(String dateTime) Return true if the year specified in the date/time string
given as the argument is a leap year. | public static boolean | leapYear() | public static double | minuteInHour(String dateTime) | public static double | minuteInHour() | public static String | monthAbbreviation(String date) Return the month abbreviation from a date. | public static String | monthAbbreviation() Return the month abbreviation from the current date. | public static double | monthInYear(String dateTime) Return the month number from a date. | public static double | monthInYear() Return the month number from the current date. | public static String | monthName(String date) Return the month name from a date. | public static String | monthName() Return the month name from the current date. | public static double | secondInMinute(String dateTime) | public static double | secondInMinute() | public static String | time(String dateTime) The date:time function returns the time specified in the date/time string given as the
argument. | public static String | time() The date:time function returns the current time. | public static double | weekInMonth(String dateTime) | public static double | weekInMonth() | public static double | weekInYear(String dateTime) | public static double | weekInYear() | public static double | year(String dateTime) The date:year function returns the year specified in the date/time string given as the
argument. | public static double | year() The date:year function returns the current year. |
date | public static String date(String dateTime)(Code) | | The date:date function returns the date specified in the date/time string given as the
argument.
Parameters: dateTime - must start with [+|-]CCYY-MM-DD |
date | public static String date()(Code) | | The date:date function returns the current date.
|
dateTime | public static String dateTime()(Code) | | The date:date-time function returns the current date and time as a date/time string.
The date/time string that's returned must be a string in the format defined as the
lexical representation of xs:dateTime in [3.2.7 dateTime] of [XML Schema Part 2: Datatypes].
The date/time format is basically CCYY-MM-DDThh:mm:ss+hh:mm.
The date/time string format must include a time zone, either a Z to indicate
Coordinated Universal Time or a + or - followed by the difference between the
difference from UTC represented as hh:mm.
|
dayAbbreviation | public static String dayAbbreviation(String dateTime)(Code) | | Return the day of the week given in a date as an English day abbreviation:
one of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', or 'Sat'.
Parameters: dateTime - must start with CCYY-MM-DD |
dayAbbreviation | public static String dayAbbreviation()(Code) | | Return the day of the week given in the current date as an English day abbreviation:
one of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', or 'Sat'.
|
dayInMonth | public static double dayInMonth(String dateTime)(Code) | | Return the day number of a specified date within the month
Parameters: dateTime - must start with CCYY-MM-DD, or --MM-DD, or ---DD |
dayInMonth | public static double dayInMonth()(Code) | | Return the day number of the current date within the month
|
dayInWeek | public static double dayInWeek(String dateTime)(Code) | | Return the day of the week given in a date as a number.
The numbering of days of the week starts at 1 for Sunday, 2 for Monday
and so on up to 7 for Saturday.
Parameters: dateTime - must start with CCYY-MM-DD |
dayInWeek | public static double dayInWeek()(Code) | | Return the day of the week in the current date as a number.
The numbering of days of the week starts at 1 for Sunday, 2 for Monday
and so on up to 7 for Saturday.
|
dayInYear | public static double dayInYear(String dateTime)(Code) | | Return the day number of a specified date within the year
|
dayInYear | public static double dayInYear()(Code) | | Return the day number of the current date within the year
|
dayName | public static String dayName(String dateTime)(Code) | | Return the day of the week given in a date as an English day name:
one of 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday' or 'Friday'.
Parameters: dateTime - must start with CCYY-MM-DD |
dayName | public static String dayName()(Code) | | Return the day of the week given in the current date as an English day name:
one of 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday' or 'Friday'.
|
dayOfWeekInMonth | public static double dayOfWeekInMonth(String dateTime)(Code) | | Return the day-of-the-week in a month of a date as a number
(for example 3 for the 3rd Tuesday in May).
Parameters: dateTime - must start with CCYY-MM-DD |
dayOfWeekInMonth | public static double dayOfWeekInMonth()(Code) | | Return the day-of-the-week in a month of the current date as a number
(for example 3 for the 3rd Tuesday in May).
|
hourInDay | public static double hourInDay(String dateTime)(Code) | | Return the hour of the day in the specified date or date/time
Parameters: dateTime - must start with CCYY-MM-DDThh:mm:ss or hh:mm:ss |
hourInDay | public static double hourInDay()(Code) | | Return the current hour of the day
|
leapYear | public static boolean leapYear(String dateTime)(Code) | | Return true if the year specified in the date/time string
given as the argument is a leap year.
|
leapYear | public static boolean leapYear()(Code) | | Returns true if the current year is a leap year
|
minuteInHour | public static double minuteInHour(String dateTime)(Code) | | Return the minute of the hour in the specified date or date/time
Parameters: dateTime - must start with CCYY-MM-DDThh:mm:ss or hh:mm:ss |
minuteInHour | public static double minuteInHour()(Code) | | Return the current minute of the hour
|
monthAbbreviation | public static String monthAbbreviation(String date)(Code) | | Return the month abbreviation from a date.
The date must start with either "CCYY-MM" or "--MM"
the English month abbreviation, for example "Jan", "Feb" |
monthAbbreviation | public static String monthAbbreviation()(Code) | | Return the month abbreviation from the current date.
the English month abbreviation, for example "Jan", "Feb" |
monthInYear | public static double monthInYear(String dateTime)(Code) | | Return the month number from a date.
The date must start with either "CCYY-MM" or "--MM"
|
monthInYear | public static double monthInYear()(Code) | | Return the month number from the current date.
|
monthName | public static String monthName(String date)(Code) | | Return the month name from a date.
The date must start with either "CCYY-MM" or "--MM"
the English month name, for example "January", "February" |
monthName | public static String monthName()(Code) | | Return the month name from the current date.
the English month name, for example "January", "February" |
secondInMinute | public static double secondInMinute(String dateTime)(Code) | | Return the second of the minute in the specified date or date/time
Parameters: dateTime - must start with CCYY-MM-DDThh:mm:ss or hh:mm:ss |
secondInMinute | public static double secondInMinute()(Code) | | Return the current second of the minute
|
time | public static String time(String dateTime)(Code) | | The date:time function returns the time specified in the date/time string given as the
argument.
Parameters: dateTime - must start with [+|-]CCYY-MM-DDThh:mm:ss |
time | public static String time()(Code) | | The date:time function returns the current time.
|
weekInMonth | public static double weekInMonth(String dateTime)(Code) | | Return the week number of a specified date within the month
(Note, this function is underspecified in EXSLT)
|
weekInMonth | public static double weekInMonth()(Code) | | Return the ISO week number of the current date within the month
|
weekInYear | public static double weekInYear(String dateTime)(Code) | | Return the ISO week number of a specified date within the year
(Note, this returns the ISO week number: the result in EXSLT is underspecified)
|
weekInYear | public static double weekInYear()(Code) | | Return the ISO week number of the current date within the year
(Note, this returns the ISO week number: the result in EXSLT is underspecified)
|
year | public static double year(String dateTime)(Code) | | The date:year function returns the year specified in the date/time string given as the
argument.
Parameters: dateTime - must begin with CCYY |
year | public static double year()(Code) | | The date:year function returns the current year.
|
|
|