private class GUtil
A Class for performing conversions needed to go from Google constructs to those more recognized by BBj and standard Java.
| Modifier and Type | Method and Description |
|---|---|
static Date | getAllDayEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!)Create an all-day Google EventDateTime object by specifying 6 numbers for Year, Month, and Day. |
static Date | getAllDayEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjString timeZone!)Create an all-day Google EventDateTime object by specifying 6 numbers for Year, Month, and Day. |
static Date | getAllDayEventDateTime(java.util.Date date!)Create an All-Day Google EventDateTime object using a java.util.Date |
static Date | getAllDayEventDateTime(java.util.Date date!, BBjString timeZone!)Create an All-Day Google EventDateTime object using a java.util.Date |
static Date | getEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjNumber hour!, BBjNumber minute!, BBjNumber second!)Create a Google EventDateTime object by specifying 6 numbers for Year, Month, Day, Hour, Minute, and Second. |
static Date | getEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjNumber hour!, BBjNumber minute!, BBjNumber second!, BBjString timezone!)Create a Google EventDateTime object by specifying 6 numbers for Year, Month, Day, Hour, Minute, and Second. |
static Date | getEventDateTime(java.util.Date date!)Create a Timed Google EventDateTime object using a java.util.Date |
static Date | getEventDateTime(java.util.Date date!, BBjString timezone!)Create a Timed Google EventDateTime object using a java.util.Date |
static Date | getJavaDate(com.google.api.services.calendar.model.Eventcom.google.api.client.util.DateTime dateTime!)Convert a Google EventDateTime object to a java.util.Date |
static Date | getJavaDateFromDateTime(com.google.api.client.util.DateTime dateTime!) |
public static Date getAllDayEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!)Create an all-day Google EventDateTime object by specifying 6 numbers for Year, Month, and Day.
year! The year expressed in full form. 2014 not 14.month! 0-based month. 0=January and 11=December.day! Day of month.public static Date getAllDayEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjString timeZone!)Create an all-day Google EventDateTime object by specifying 6 numbers for Year, Month, and Day.
year! The year expressed in full form. 2014 not 14.month! 0-based month. 0=January and 11=December.day! Day of month.timeZone! BBjString representing a timezone in Continent/City form: "America/Denver"public static Date getAllDayEventDateTime(java.util.Date date!)
Create an All-Day Google EventDateTime object using a java.util.Date
date! The java.util.Date used to set the date.public static Date getAllDayEventDateTime(java.util.Date date!, BBjString timeZone!)Create an All-Day Google EventDateTime object using a java.util.Date
date! The java.util.Date used to set the date.timezone! BBjString representing a timezone in Continent/City form: "America/Denver" http://en.wikipedia.org/wiki/List_of_tz_database_time_zonespublic static Date getEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjNumber hour!, BBjNumber minute!, BBjNumber second!)Create a Google EventDateTime object by specifying 6 numbers for Year, Month, Day, Hour, Minute, and Second.
year! The year expressed in full form. 2014 not 14.month! 0-based month. 0=January and 11=December.day! Day of month.hour! Hour of day: 0-23minute! Minute of hour: 0-59second! Second of minute: 0-59public static Date getEventDateTime(BBjNumber year!, BBjNumber month!, BBjNumber day!, BBjNumber hour!, BBjNumber minute!, BBjNumber second!, BBjString timezone!)Create a Google EventDateTime object by specifying 6 numbers for Year, Month, Day, Hour, Minute, and Second.
year! The year expressed in full form. 2014 not 14.month! 0-based month. 0=January and 11=December.day! Day of month.hour! Hour of day: 0-23minute! Minute of hour: 0-59second! Second of minute: 0-59timezone! BBjString representing a timezone in Continent/City form: "America/Denver" http://en.wikipedia.org/wiki/List_of_tz_database_time_zonespublic static Date getEventDateTime(java.util.Date date!)
Create a Timed Google EventDateTime object using a java.util.Date
date! The java.util.Date used to set the time.public static Date getEventDateTime(java.util.Date date!, BBjString timezone!)Create a Timed Google EventDateTime object using a java.util.Date
date! The java.util.Date used to set the time.timezone! BBjString representing a timezone in Continent/City form: "America/Denver" http://en.wikipedia.org/wiki/List_of_tz_database_time_zonespublic static Date getJavaDate(com.google.api.services.calendar.model.Eventcom.google.api.client.util.DateTime dateTime!)Convert a Google EventDateTime object to a java.util.Date
dateTime! The Google EventDateTime object.public static Date getJavaDateFromDateTime(com.google.api.client.util.DateTime dateTime!)