CheckFileProperties.java (de51bb97) CheckFileProperties.java (d917f5e5)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 169 unchanged lines hidden (view full) ---

178 else
179 return false;
180 }
181
182 private DateTime getCurrentDateTime(){
183 Calendar ca = Calendar.getInstance();
184 DateTime currentDateTime = new DateTime();
185 currentDateTime.Year = (short)ca.get(Calendar.YEAR);
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 169 unchanged lines hidden (view full) ---

178 else
179 return false;
180 }
181
182 private DateTime getCurrentDateTime(){
183 Calendar ca = Calendar.getInstance();
184 DateTime currentDateTime = new DateTime();
185 currentDateTime.Year = (short)ca.get(Calendar.YEAR);
186 currentDateTime.Month = (short)ca.get(Calendar.MONTH);
186 // java.util.Calendar's months start at 0=January.
187 currentDateTime.Month = (short)(ca.get(Calendar.MONTH) + 1);
187 currentDateTime.Day = (short)ca.get(Calendar.DATE);
188 currentDateTime.Minutes = (short)ca.get(Calendar.MINUTE);
189 currentDateTime.Hours = (short)ca.get(Calendar.HOUR);
190 currentDateTime.Seconds = (short)ca.get(Calendar.SECOND);
191
192 return currentDateTime;
193 }
194
195 private Date getCurrentDate(){
196 Calendar ca = Calendar.getInstance();
197 Date currentDate = new Date();
198 currentDate.Year = (short)ca.get(Calendar.YEAR);
188 currentDateTime.Day = (short)ca.get(Calendar.DATE);
189 currentDateTime.Minutes = (short)ca.get(Calendar.MINUTE);
190 currentDateTime.Hours = (short)ca.get(Calendar.HOUR);
191 currentDateTime.Seconds = (short)ca.get(Calendar.SECOND);
192
193 return currentDateTime;
194 }
195
196 private Date getCurrentDate(){
197 Calendar ca = Calendar.getInstance();
198 Date currentDate = new Date();
199 currentDate.Year = (short)ca.get(Calendar.YEAR);
199 currentDate.Month = (short)ca.get(Calendar.MONTH);
200 // java.util.Calendar's months start at 0=January.
201 currentDate.Month = (short)(ca.get(Calendar.MONTH) + 1);
200 currentDate.Day = (short)ca.get(Calendar.DATE);
201
202 return currentDate;
203 }
204
205 /*
206 * UI entry: File->Properties->General->Created*/
207 @Test

--- 446 unchanged lines hidden ---
202 currentDate.Day = (short)ca.get(Calendar.DATE);
203
204 return currentDate;
205 }
206
207 /*
208 * UI entry: File->Properties->General->Created*/
209 @Test

--- 446 unchanged lines hidden ---