Returns the minimum value of the required field which the passed calendar as argument can have.
1 calendar.getActualMinimum
<calendar.getActualMinimum field='field'>
<calendar /> +
</calendar.getActualMinimum>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Afield | string |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecalendar | java.util.Calendar |
Returns | |
---|---|
Type | Description |
Integer | Minimum value of the specified field to the passed calendar as argument. |
Example
Returns the first day of the month based on today's day.
Copy
<xsql-script name='calendar'> <body> <println><calendar.getActualMinimum field='DAY_OF_MONTH'> <calendar> <date.current/> </calendar> </calendar.getActualMinimum></println> </body> </xsql-script>
The result is:
Copy
1
Example
Returns the first month of the year based on today's day.
Copy
<xsql-script name='calendar'> <body> <println><calendar.getActualMinimum field='MONTH'> <calendar> <date.current/> </calendar> </calendar.getActualMinimum></println> </body> </xsql-script>
The result is:
Copy
0