AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
getCalendarLeastMaximum (Calendar calendar, int comp) yoix.util
 
NOTE: this function is deprecated and will be going away very, very soon. Use the leastmaximum builtin of Calendar instead.

Returns the smallest of the set of maximum values for the component of calendar specified by comp.
 
 Example:   The smallest number of days in a month can be found as follows:
import yoix.stdio.*;
import yoix.util.*;

Calendar c;

printf("A month will have at least %d days.\n",
       getCalendarLeastMaximum(c, Calendar.DAY_OF_MONTH));
puts("Note that leap year is not taken into account.");
with the result:
A month will have at least 28 days.
Note that leap year is not taken into account.
 
 Return:   int
 
 See Also:   addCalendar, Calendar, compareCalendar, date getCalendarMaximum, getCalendarMinimum, getDateFormat, parseDate, rollCalendar, setCalendar

 

Yoix is a registered trademark of AT&T Inc.