UNPKG

@niur/google-admanager-api

Version:
30 lines 1.17 kB
import { DateTime } from '../types'; /** * A utility class that allows you to build Datetime objects from strings. */ export declare class DateTimeUtilities { /** * Converts the string in format yyyyMMdd HH:mm:ss to a DateTime object * with the specified time zone. * @param dateString The date string. * @param timeZoneId The timeZoneId to set. * @returns A AdManager Datetime object. */ fromString(dateString: string, timeZoneId: string): DateTime; /** * Converts Date object to a AdManager DateTime object with the specified * timeZoneId. Does not perform time zone conversion. This means the returned DateTime * value may not represent the same instant as the Date value. * @param date The Date object. * @param timeZoneId The timeZoneId to use. * @returns A AdManager Datetime object. */ fromDate(date: Date, timeZoneId?: string): DateTime; /** * Converts AdManager DateTime object to a string. * @param dateTime The DateTime object. * @returns A string. */ toString(dateTime: DateTime): string; } //# sourceMappingURL=dateTimeUtilities.util.d.ts.map