UNPKG

gcal-commander

Version:

A command-line interface for Google Calendar operations

16 lines (15 loc) 633 B
import { calendar_v3 as calendarV3 } from 'googleapis'; export interface DateTimeInfo { dateStr: string; isAllDay: boolean; timeStr: string; } export declare class DateFormatter { static formatEventDateTime(eventTime: calendarV3.Schema$EventDateTime): DateTimeInfo | null; static formatEventDateTimeString(eventTime: calendarV3.Schema$EventDateTime): null | string; static formatListEventTime(event: calendarV3.Schema$Event): null | { dateStr: string; timeStr: string; }; static formatShowEventTime(eventTime: calendarV3.Schema$EventDateTime, label: 'End' | 'Start'): null | string; }