public class UTC
extends java.lang.Object
Constructor and Description |
---|
UTC()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getLocaleDate(java.util.Date utcDate)
Deprecated.
converts the time from UTC (GMT) to the time from default timezone.
|
static java.util.Date |
getLocaleDate(java.lang.String utcDateString)
Deprecated.
converts the time from UTC (GMT) to the time from default timezone.
|
static java.util.Date |
getUTCDate()
Deprecated.
converts the currentTime of the default timezone to UTC (GMT).
|
static java.util.Date |
getUTCDate(java.util.Date date)
Deprecated.
converts the time from the default timezone to UTC (GMT).
|
static java.util.Date |
getUTCDate(java.lang.String dateString)
Deprecated.
converts the time from the default timezone to UTC (GMT)
|
public static java.util.Date getUTCDate()
public static java.util.Date getUTCDate(java.util.Date date)
date
- object to be converted to UTC( GMT ), if null the current date will be taken as parameter.public static java.util.Date getUTCDate(java.lang.String dateString) throws java.text.ParseException
dateString
- date in string format, if null, the current date will be taken as parameter.
throws java.text.ParseException when the parameter specified is not a valid date.java.text.ParseException
public static java.util.Date getLocaleDate(java.util.Date utcDate)
utcdate
- object to be converted to Local Time , if null the current date will be taken as parameter.public static java.util.Date getLocaleDate(java.lang.String utcDateString) throws java.text.ParseException
utcdate
- in String format to be converted to Local Time , if null the current date will be taken as parameter.java.text.ParseException