Skip to content

New GCalendarEventDateTimeObj

Spencer Varney edited this page Dec 9, 2016 · 2 revisions

New-GCalendarEventDateTimeObj

SYNOPSIS

Creates a new Calendar API EventDateTime object.

SYNTAX

New-GCalendarEventDateTimeObj [[-Date] <String>] [[-DateTime] <DateTime>] [[-TimeZone] <String>] [-WhatIf]
 [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a EventDateTime object which may be required as a parameter for some other Cmdlets in the Calendar API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Calendar.v3.Data.EventDateTime

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GCalendarEventDateTimeObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Date

The date, in the format "yyyy-mm-dd", if this is an all-day event.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DateTime

The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.

Type: DateTime
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-TimeZone

The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

The date, in the format "yyyy-mm-dd", if this is an all-day event.

System.DateTime

The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.

System.String

The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.

OUTPUTS

Google.Apis.Calendar.v3.Data.EventDateTime

NOTES

Part of the gShell Project, relating to the Google Calendar API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally