Skip navigation links


com.essbase.eas.utils
Class TimeUtilities

java.lang.Object
  extended by com.essbase.eas.utils.TimeUtilities


public class TimeUtilities
extends java.lang.Object

Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation

Since:
7.0
Version:
7.0
Author:
Namita Varma

Constructor Summary
TimeUtilities()
           

 

Method Summary
static long convertMilliToSeconds(long time)
           
static java.util.Date getFixedDateRange(int choice, java.util.Date now)
           
static boolean isValidDateRange(java.util.Date dateFrom, java.util.Date dateTo)
          isValidDateRange is a utility function to validate two dates as valid before and after dates.
static java.util.Date setDateToDayEnd(java.util.Date d)
          setDateToDayEnd is a utility function for setting a date to the end of the day, that is: 23:59:59:999 (one millisecond before midnight)
static java.util.Date setDateToDayStart(java.util.Date d)
           
 void start()
           
 void stop(java.lang.Object message)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TimeUtilities

public TimeUtilities()

Method Detail

start

public void start()

stop

public void stop(java.lang.Object message)

setDateToDayStart

public static java.util.Date setDateToDayStart(java.util.Date d)

setDateToDayEnd

public static java.util.Date setDateToDayEnd(java.util.Date d)
setDateToDayEnd is a utility function for setting a date to the end of the day, that is: 23:59:59:999 (one millisecond before midnight)

isValidDateRange

public static boolean isValidDateRange(java.util.Date dateFrom,
                                       java.util.Date dateTo)
isValidDateRange is a utility function to validate two dates as valid before and after dates. It considers two dates of that are set to the same day as a valid date range. That is, it considers it as a 24 period on that day.

getFixedDateRange

public static java.util.Date getFixedDateRange(int choice,
                                               java.util.Date now)

convertMilliToSeconds

public static long convertMilliToSeconds(long time)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.