public class ScheduleUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScheduleUtils.DateIntegerValues |
static class |
ScheduleUtils.ScheduleEventDecorator |
| Constructor and Description |
|---|
ScheduleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ScheduleEvent |
buildOldScheduleEventFromRequest(Schedule schedule,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String clientId) |
static ScheduleEvent |
buildScheduleEventFromRequest(Schedule schedule,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String clientId) |
static java.util.Date |
convertDateTimeToServerFormat(java.lang.String date,
java.lang.String time)
Assumes month is 1-relative
|
static int |
determineLastDayOfMonth(int currentYear,
int currentMonth)
Returns the integer day number of the last day of the given month.
|
static int[] |
determineLastDayOfWeek(int currentYear,
int currentMonth,
int currentDay)
Returns the integer values of the last day of the week, starting with the current day.
|
static java.util.Date |
getDateFromIntegerValues(ScheduleUtils.DateIntegerValues values)
Returns the Date object from the DateIntegerValues object provided.
|
static ScheduleUtils.DateIntegerValues |
getDateIntegerValues(java.util.Date date)
Returns the integer year, month, day, hour, minute, and second values of a Date object.
|
static java.lang.String[] |
getDefaultEndDateTime(Schedule schedule,
java.lang.String clientId,
java.lang.String startDate,
java.lang.String startTime,
java.lang.String endDate) |
static java.util.Date |
toTimeZoneFromUTC(java.util.Date date,
java.util.TimeZone timeZone)
source Date object, assumed to represent a UTC time
|
static java.util.Date |
toUTCFromString(java.lang.String date,
java.lang.String time,
java.lang.String offsetInMinutes) |
static java.util.Date |
toUTCFromTimeZone(java.util.Date date,
java.util.TimeZone timeZone)
source Date object, assumed to represent time in the given time zone
|
public static java.util.Date toUTCFromTimeZone(java.util.Date date,
java.util.TimeZone timeZone)
public static java.util.Date toTimeZoneFromUTC(java.util.Date date,
java.util.TimeZone timeZone)
public static java.util.Date toUTCFromString(java.lang.String date,
java.lang.String time,
java.lang.String offsetInMinutes)
public static java.util.Date convertDateTimeToServerFormat(java.lang.String date,
java.lang.String time)
public static ScheduleEvent buildScheduleEventFromRequest(Schedule schedule, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String clientId)
public static ScheduleEvent buildOldScheduleEventFromRequest(Schedule schedule, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String clientId)
public static int[] determineLastDayOfWeek(int currentYear,
int currentMonth,
int currentDay)
public static int determineLastDayOfMonth(int currentYear,
int currentMonth)
public static ScheduleUtils.DateIntegerValues getDateIntegerValues(java.util.Date date)
public static java.util.Date getDateFromIntegerValues(ScheduleUtils.DateIntegerValues values)
public static java.lang.String[] getDefaultEndDateTime(Schedule schedule, java.lang.String clientId, java.lang.String startDate, java.lang.String startTime, java.lang.String endDate)
Copyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.