Home | History | Annotate | Download | only in impl

Lines Matching refs:fields

119     public static int[] dayToFields(long day, int[] fields) {
120 if (fields == null || fields.length < 5) {
121 fields = new int[5];
155 fields[0] = year;
156 fields[1] = month;
157 fields[2] = dayOfMonth;
158 fields[3] = dayOfWeek;
159 fields[4] = dayOfYear;
161 return fields;
165 * Convert long time to date/time fields
174 public static int[] timeToFields(long time, int[] fields) {
175 if (fields == null || fields.length < 6) {
176 fields = new int[6];
180 dayToFields(day, fields);
181 fields[5] = (int)remainder[0];
182 return fields;
226 int[] fields = timeToFields(time, null);
227 int millis = fields[5];
236 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis);