Update constants, ensuring that 64bit longs are used properly

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-09-07 22:50:45 +00:00
parent d528509c82
commit e5e5fb3ebd
1 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ import java.util.TimeZone;
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @author Phil Steitz
* @since 2.0
* @version $Id: DateUtils.java,v 1.25 2004/08/29 03:41:48 bayard Exp $
* @version $Id: DateUtils.java,v 1.26 2004/09/07 22:50:45 scolebourne Exp $
*/
public class DateUtils {
@ -46,19 +46,19 @@ public class DateUtils {
/**
* Number of milliseconds in a standard minute.
*/
public static final long MILLIS_PER_MINUTE = 60 * 1000;
public static final long MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND;
/**
* Number of milliseconds in a standard hour.
*/
public static final long MILLIS_PER_HOUR = 60 * 60 * 1000;
public static final long MILLIS_PER_HOUR = 60 * MILLIS_PER_MINUTE;
/**
* Number of milliseconds in a standard day.
*/
public static final long MILLIS_PER_DAY = 24 * 60 * 60 * 1000;
public static final long MILLIS_PER_DAY = 24 * MILLIS_PER_HOUR;
// hmm. not very accurate. used by DurationFormatUtils
static final long MILLIS_PER_YEAR = 365 * 24 * 60 * 60 * 1000;
static final long MILLIS_PER_MONTH = (365 * 24 * 60 * 60 * 1000) / 12;
static final long MILLIS_PER_YEAR = 365 * MILLIS_PER_DAY;
static final long MILLIS_PER_MONTH = MILLIS_PER_YEAR / 12;
/**
* This is half a month, so this represents whether a date is in the top