All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.date-functions.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>

<functions>
  <function>
    <name>currentTimeMillis</name>
    <prefix>date</prefix>
    <description>Returns the current time in millis.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>long currentTimeMillis()</function-signature>
  </function>
  <function>
    <name>now</name>
    <prefix>date</prefix>
    <description>Returns the date now.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String now(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>current</name>
    <prefix>date</prefix>
    <description>Returns the current date.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String current(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>currentMonth</name>
    <prefix>date</prefix>
    <description>Returns the current month.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>int currentMonth()</function-signature>
  </function>
  <function>
    <name>currentDayOfMonth</name>
    <prefix>date</prefix>
    <description>Returns the current date of month.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>int currentDayOfMonth()</function-signature>
  </function>
  <function>
    <name>currentYear</name>
    <prefix>date</prefix>
    <description>Returns the current year.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>int currentYear()</function-signature>
  </function>
  <function>
    <name>reformat</name>
    <prefix>date</prefix>
    <description>Returns the re-formatted date string.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String reformat(java.lang.String,java.lang.String,java.lang.String)</function-signature>
  </function>
  <function>
    <name>midnight</name>
    <prefix>date</prefix>
    <description>Returns the midnight date.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String midnight(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>firstDayOfYear</name>
    <prefix>date</prefix>
    <description>Returns the first day of the year.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String firstDayOfYear(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>firstDayOfMonth</name>
    <prefix>date</prefix>
    <description>Returns the first day of the month.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String firstDayOfMonth(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>lastDayOfMonth</name>
    <prefix>date</prefix>
    <description>Returns the last day of the month.</description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String lastDayOfMonth(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>changeISODateFormat</name>
    <prefix>date</prefix>
    <description><![CDATA[<p>Changes an ISO Date Format</p>

    <p>Example:<br>
    | EL Add Variable | date | $[date:changeISODateFormat('2013-05-06T04:46:22.000+08:00','yyyy-MM-dd HH:mm:ss.S')] |</p>

    <p>=></p>

    <p>date = 2013-05-06 04:46:22.0</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String changeISODateFormat(java.lang.String,java.lang.String)</function-signature>
  </function>
  <function>
    <name>parse</name>
    <prefix>date</prefix>
    <description><![CDATA[<p>Parse a date.</p>

    <p>Example: Assumption that the date today is April 23, 2013 3:47 pm<br>
    | Set Date Time Format | dd-MM-yyyy HH:mm:ss |<br>
    | Print Date Time | |<br>
    | ${dateSet}= | EL Evaluate |  $[date:parse('2013-02-08', 'yyyy-MM-dd')] | # Recornize that the string passed is a date with this format yyyy-MM-dd |<br>
    | Print Date Time | |</p>

    <p>=></p>

    <p>23-04-2013 15:37:00<br>
    08-02-2013 00:00:00</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String parse(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>toUtilDate</name>
    <prefix>date</prefix>
    <description></description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.util.Date toUtilDate(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>toSQLDate</name>
    <prefix>date</prefix>
    <description><![CDATA[

    <p>Example: Assumption that the date today is Apr 23, 2013 3:47 pm<br>
    | Set Date Time Format | yyyy-MM-dd HH:mm:ss |<br>
    | ${sqlDate}= | EL Evaluate | $[date:toSQLDate()] |</p>

    <p>=></p>

    <p>2013-04-23</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.sql.Date toSQLDate(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>toSQLTime</name>
    <prefix>date</prefix>
    <description><![CDATA[

    <p>Example: Assumption that the date today is Apr 23, 2013 3:47 pm<br>
    | Set Date Time Format | yyyy-MM-dd HH:mm:ss |<br>
    | ${sqlTime}= | EL Evaluate | $[date:toSQLTime()] |</p>

    <p>=></p>

    <p>15:47:00</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.sql.Time toSQLTime(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>toSQLTimestamp</name>
    <prefix>date</prefix>
    <description><![CDATA[

    <p>Example: Assumption that the date today is Apr 23, 2013 3:47 pm<br>
    | Set Date Time Format | yyyy-MM-dd HH:mm:ss |<br>
    | ${sqlTimestamp}= | EL Evaluate | $[date:toSQLTimestamp()] |</p>

    <p>=></p>

    <p>2013-04-23 15:47:00</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.sql.Timestamp toSQLTimestamp(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>isBeforeNow</name>
    <prefix>date</prefix>
    <description><![CDATA[<p>Check if date passes is before date now.</p>

    <p>Example:<br>
    | EL Should Be True | $[date:isBeforeNow()] |</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.Boolean isBeforeNow(java.lang.String[])</function-signature>
  </function>
  <function>
    <name>isoParse</name>
    <prefix>date</prefix>
    <description><![CDATA[<p>Parses an ISO date format to the set date time format.</p>

    <p>Example :<br>
    | EL Should Be Equal | $[date:isoParse('2013-03-18T15:39:43.000+08:00')] | 2013-03-18 15:39:43 |</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String isoParse(java.lang.String)</function-signature>
  </function>
  <function>
    <name>formatDate</name>
    <prefix>date</prefix>
    <description><![CDATA[<p>Constructs a <code>SimpleDateFormat</code> using the given pattern.<p>
    <p>Example :<br>
    | EL Add Variable     | date        | $[date:toUtilDate('2013-10-29','yyyy-MM-dd')] |<br>
    | ${formatted_date}=  | EL Evaluate | $[date:formatDate(date,'dd/M/yyyy')] |</p>]]>
    </description>
    <function-class>org.jspringbot.keyword.date.DateUtils</function-class>
    <function-signature>java.lang.String formatDate(java.util.Date, java.lang.String)</function-signature>
  </function>

</functions>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy