com.google.api.ads.admanager.lib.utils.DateTimesHelper.toDateTime() - java examples

Here are the examples of the java api com.google.api.ads.admanager.lib.utils.DateTimesHelper.toDateTime() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

19 View Complete Implementation : DateTimes.java
Copyright Apache License 2.0
Author : googleads
/**
 * Converts a {@code DateTime} object to an API date time preserving the time zone.
 */
public static DateTime toDateTime(org.joda.time.DateTime dateTime) {
    return dateTimesHelper.toDateTime(dateTime);
}

19 View Complete Implementation : DateTimes.java
Copyright Apache License 2.0
Author : googleads
/**
 * Converts an API date time to a {@code DateTime} preserving the time zone.
 */
public static org.joda.time.DateTime toDateTime(DateTime dateTime) {
    return dateTimesHelper.toDateTime(dateTime);
}

19 View Complete Implementation : DateTimes.java
Copyright Apache License 2.0
Author : googleads
/**
 * Converts an {@code Instant} object to an API date time in the time zone supplied.
 */
public static DateTime toDateTime(Instant instant, String timeZoneId) {
    return dateTimesHelper.toDateTime(instant, timeZoneId);
}

19 View Complete Implementation : DateTimes.java
Copyright Apache License 2.0
Author : googleads
/**
 * Converts a {@code Calendar} object to an API date time preserving the time zone.
 */
public static DateTime toDateTime(Calendar calendar) {
    return dateTimesHelper.toDateTime(calendar);
}

19 View Complete Implementation : DateTimes.java
Copyright Apache License 2.0
Author : googleads
/**
 * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss} to an API date time in the time
 * zone supplied.
 */
public static DateTime toDateTime(String dateTime, String timeZoneId) {
    return dateTimesHelper.toDateTime(dateTime, timeZoneId);
}