function: rfc3339_parse

Given an RFC3339 timestamp string, will parse and return an object representation of that date and time.

Example Usage

# Configuration using provider functions must include required_providers configuration.
terraform {
  required_providers {
    time = {
      source = "hashicorp/time"
      # Setting the provider version is a strongly recommended practice
      # version = "..."
    }
  }
  # Provider functions require Terraform 1.8 and later.
  required_version = ">= 1.8.0"
}

output "example_output" {
  value = provider::time::rfc3339_parse("2023-07-25T23:43:16Z")
}

Signature

rfc3339_parse(timestamp string) object

Arguments

  1. timestamp (String) RFC3339 timestamp string to parse

Return Type

The object returned from rfc3339_parse has the following attributes: