Field AM_PM
Field type: int
Member of: java.util.Calendar
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 cal.set(Calendar.AM_PM, amPm);
2 now.get(Calendar.AM_PM),
3 calendar.set(Calendar.AM_PM, Calendar.PM);
4 cal1.set(Calendar.AM_PM, amPm1);
5 int ampm = cal.get(Calendar.AM_PM);
6 cl.set(Calendar.AM_PM, Calendar.AM);
7 if(lPassedCal.get(Calendar.AM_PM) == Calendar.AM)
8 label = cal.get(Calendar.HOUR) + ":" + (minute < 10 ? ("0" + minute) : "" + minute) + (cal.get(Calendar.AM_PM) == 0 ? "am" : "pm");
9 cal.set(Calendar.AM_PM, Calendar.AM);
10 calendar.set( Calendar.AM_PM, 0 );
11 int am_pm = calendar.get(Calendar.AM_PM);
12 case Calendar.AM_PM:
13 rule = new TextField(Calendar.AM_PM, AmPmStrings);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.