public class COSARExprTime2Str extends COSARExpr
The format is defined according to java documentation for SimpleDateFormatter. See http://java.sun.com/products/jdk/1.2/docs/api/index.html
Here are some examples of control characters
Characters may be prevented from being interpreted as control characters by enclosing them in single quotes. The format "'Date: ' yy/mm/dd" would result in "Date: 00/01/21" being output.
Modifier and Type | Field and Description |
---|---|
protected COSARExpr |
m_format |
protected COSARExpr |
m_time
These members represent the operands.
|
protected COSARAttrString |
m_value |
m_bIsConstant
Constructor and Description |
---|
COSARExprTime2Str(COSARExpr op1,
COSARExpr op2) |
Modifier and Type | Method and Description |
---|---|
COSARAttr |
eval(java.util.HashMap symbols)
This function is used to evaluate the expression.
|
java.lang.String |
toString() |
isConstant
protected COSARAttrString m_value
protected COSARExpr m_time
protected COSARExpr m_format
public COSARAttr eval(java.util.HashMap symbols) throws java.lang.Exception
COSARExpr
public java.lang.String toString()
toString
in class java.lang.Object