public class UTCDateTimeUtils extends Object
UTCDateBox
and UTCTimeBox
.Constructor and Description |
---|
UTCDateTimeUtils() |
Modifier and Type | Method and Description |
---|---|
static Long |
getDateBoxValue(TimeZone zone,
Date date)
|
static Date |
getDateValue(TimeZone zone,
Long dateBoxValue,
Long timeBoxValue)
|
static Long |
getTimeBoxValue(TimeZone zone,
Date date)
|
public static final Long getTimeBoxValue(TimeZone zone, Date date)
zone
- The TimeZone
in which the Date will be
rendered.date
- The Date which should be displayed in the UTCTimeBoxpublic static final Long getDateBoxValue(TimeZone zone, Date date)
zone
- The TimeZone
in which the Date will be
rendered.date
- The Date which should be displayed in the UTCTimeBoxpublic static final Date getDateValue(TimeZone zone, Long dateBoxValue, Long timeBoxValue)
Date
for the values of the UTCDateBox and
UTCTimeBox which were edited in the specified TimeZone
.zone
- The TimeZone
in which the Date was edited.dateBoxValue
- The value of the UTCDateBox
control.timeBoxValue
- The value of the UTCTimeBox
control.Date
that has been selected from the
controls or null if the supplied dateBoxValue is null.
If the timeBoxValue is null, midnight is returned.Copyright © 2015. All Rights Reserved.