Sha256: 27a4452c654991033a227e5988fd1b8655e9b57bcef9015268f7f24f490d28cc

Contents?: true

Size: 1.71 KB

Versions: 1222

Compression:

Stored size: 1.71 KB

Contents

![timestamp-timezones](https://github.com/powerhome/playbook/assets/92755007/119f0838-e912-473b-83de-626db1fd0d61)

```swift
VStack(alignment: .leading, spacing: Spacing.small) {
  Group {
    PBTimestamp(
      Date(),
      showDate: false,
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date(),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(addThreeYear),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(subOneYear),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)
  }

  Group {
    PBTimestamp(
      Date(),
      showDate: false,
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date(),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(addThreeYear),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(subOneYear),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)
  }
}
```

Version data entries

1,222 entries across 1,222 versions & 2 rubygems

Version Path
playbook_ui_docs-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md