ECal.ComponentDateTime.new
Description: Reference for ECal.ComponentDateTime.new

### Function

# ECal ComponentDateTimenew

since: 3.34

#### Declaration [src]

    ECalComponentDateTime*
    e_cal_component_datetime_new (
      const ICalTime* value,
      const gchar* tzid
    )

#### Description [src]

Creates a new `ECalComponentDateTime` instance, which holds the `value` and `tzid`. The returned structure should be freed with e_cal_component_datetime_free(), when no longer needed.

Available since: 3.34

#### Parameters

`value`

  Type: `None`

  An `ICalTime` as a value.

  The data is owned by the caller of the function.

`tzid`

  Type: `const gchar*`

  Timezone ID for the `value`, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `ECalComponentDateTime`

A new `ECalComponentDateTime`.

The caller of the function takes ownership of the data, and is responsible for freeing it.