ICalGLib.Duration.new_from_string
Description: Reference for ICalGLib.Duration.new_from_string

### Constructor

# ICalGLib Durationnew_from_string

since: 1.0

#### Declaration [src]

    ICalDuration*
    i_cal_duration_new_from_string (
      const gchar* str
    )

#### Description [src]

Creates a `ICalDuration` from the duration in string.

Available since: 1.0

#### Parameters

`str`

  Type: `const gchar*`

  The string representation of the duration.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `ICalDuration`

The newly created `ICalDuration`.

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