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
getCalendarMinimum (Calendar calendar, int comp) yoix.util
 
NOTE: this function is deprecated and will be going away very, very soon. Use the minimum builtin of Calendar instead.

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

Calendar c;

printf("A month will have no fewer than %d days.\n",
       getCalendarMinimum(c, Calendar.DAY_OF_MONTH));
puts("No surprise there.");
with the result:
A month will have no fewer than 1 days.
No surprise there.
 
 Return:   int
 
 See Also:   addCalendar, Calendar, compareCalendar, date getCalendarLeastMaximum, getCalendarMaximum, getDateFormat, parseDate, rollCalendar, setCalendar

 

Yoix is a registered trademark of AT&T Inc.