Que signifie "Calendar.DAY_OF_MONTH"
Bonjour en maintenant un vieux script JAVA j'ai trouvé ce bout de code
Code:
1 2
| int dayOfMonth = Calendar.DAY_OF_MONTH;
Calendar calendrier = GregorianCalendar.getInstance(); |
En regardant la doc
Citation:
/**
* Field number for <code>get</code> and <code>set</code> indicating the
* day of the month. This is a synonym for <code>DATE</code>.
* The first day of the month has value 1.
*
* @see #DATE
*/
public final static int DAY_OF_MONTH = 5
Et j'avoue ne rien comprendre :aie:, c'est exactement ce jour qui est une constante = 5 ?
Merci d'avance de m’éclairer la dessus.