Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.util
Class DateHelper

java.lang.Object
  extended by oracle.adfnmc.java.util.DateHelper

public class DateHelper
extends java.lang.Object


Constructor Summary
DateHelper()
           
 
Method Summary
static boolean after(java.util.Date self, java.util.Date date)
          Answers if this Date is after the specified Date.
static boolean before(java.util.Date self, java.util.Date date)
          Boolean indication of whether or not this Date occurs earlier than the Date argument.
static int compareTo(java.util.Date self, java.util.Date date)
          Compare the receiver to the specified Date to determine the relative ordering.
static long parse(java.lang.String string)
          Deprecated. use DateFormat
static long UTC(int year, int month, int day, int hour, int minute, int second)
          Deprecated. use: Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal.set(year + 1900, month, day, hour, minute, second); cal.getTime().getTime();
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateHelper

public DateHelper()
Method Detail

after

public static boolean after(java.util.Date self,
                            java.util.Date date)
Answers if this Date is after the specified Date.

Parameters:
date - a Date instance to compare
Returns:
true if this Date is after the specified Date, false otherwise

before

public static boolean before(java.util.Date self,
                             java.util.Date date)
Boolean indication of whether or not this Date occurs earlier than the Date argument.

Parameters:
date - a Date instance to compare
Returns:
true if this Date occurs earlier than date, otherwise false

compareTo

public static int compareTo(java.util.Date self,
                            java.util.Date date)
Compare the receiver to the specified Date to determine the relative ordering.

Parameters:
date - a Date
Returns:
an int < 0 if this Date is less than the specified Date, 0 if they are equal, and > 0 if this Date is greater

parse

public static long parse(java.lang.String string)
Deprecated. use DateFormat

Answers the millisecond value of the date and time parsed from the specified String. Many date/time formats are recognized, including IETF standard syntax, i.e. Tue, 22 Jun 1999 12:16:00 GMT-0500

Parameters:
string - the String to parse
Returns:
the millisecond value parsed from the String

UTC

public static long UTC(int year,
                       int month,
                       int day,
                       int hour,
                       int minute,
                       int second)
Deprecated. use: Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal.set(year + 1900, month, day, hour, minute, second); cal.getTime().getTime();

Answers the millisecond value of the specified date and time in GMT.

Parameters:
year - the year, 0 is 1900
month - the month, 0 - 11
day - the day of the month, 1 - 31
hour - the hour of day, 0 - 23
minute - the minute of the hour, 0 - 59
second - the second of the minute, 0 - 59
Returns:
long

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.