Package scriptella.core
Class EtlVariable.DateUtils
java.lang.Object
scriptella.core.EtlVariable.DateUtils
- Enclosing class:
- EtlVariable
Utility class for ETL file expressions.
Provides format/parse operation for date/time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormats a specified date/time according to the specified pattern.now()Returns the current date.Returns a current date/time formatted according to the specified format.today()Returns the formatted representation of current date.A synonym fornow(String).
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
now
Returns a current date/time formatted according to the specified format.- Parameters:
formatPattern- format pattern as specified bySimpleDateFormat.- Returns:
- formatted string representation of current date/time.
- See Also:
-
format
Formats a specified date/time according to the specified pattern.- Parameters:
date- date to format.formatPattern- format pattern as specified bySimpleDateFormat.- Returns:
- formatted string representation of the specified date/time.
-
parse
- Throws:
ParseException
-
now
Returns the current date.- Returns:
- current date/time.
-
today
Returns the formatted representation of current date.Time part is skipped.
- Returns:
- formatted representation of current date.
-
today
A synonym fornow(String).- Parameters:
formatPattern- format pattern.- Returns:
- formatted date.
-